Skip to content
Snippets Groups Projects
Commit 40c67dfc authored by dtc's avatar dtc
Browse files

Define the variable *software-version* avoiding a compiler warning,

and use it to cache the result of software-version.
parent c50a7c5f
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/osf1-os.lisp,v 1.4 1997/07/09 12:08:59 pw Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/osf1-os.lisp,v 1.5 1998/03/10 18:27:35 dtc Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -20,13 +20,21 @@
(export '(*task-self* *task-data* *task-notify*))
(pushnew :osf1 *features*)
(setq *software-type* "OSF1")
(defvar *software-version* nil "Version string for supporting software")
(defun software-version ()
"Returns a string describing version of the supporting software."
(string-trim '(#\newline)
(with-output-to-string (stream)
(run-program "/usr/bin/uname" '("-sr") :output stream))))
(unless *software-version*
(setf *software-version*
(string-trim '(#\newline)
(with-output-to-string (stream)
(run-program "/usr/bin/uname"
'("-sr")
:output stream)))))
*software-version*)
;;; OS-Init initializes our operating-system interface. It sets the values
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment