Mercurial > hg > octave-max
changeset 4444:9a2206207402
[project @ 2003-07-07 20:04:53 by jwe]
author | jwe |
---|---|
date | Mon, 07 Jul 2003 20:05:46 +0000 |
parents | aa345723c698 |
children | 3e94126d8071 |
files | doc/interpreter/octave-config.1 octave-config.in |
diffstat | 2 files changed, 53 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/octave-config.1 +++ b/doc/interpreter/octave-config.1 @@ -23,6 +23,30 @@ .TP 8 .B \--oct-site-dir Display the main directory for local, or site-specific, .oct dynamic-link libraries. +.TP 8 +.B \-p|\-\-print VAR +Print the default value of the Octave configuration variable VAR. +Recognized variables are: +.RS + CANONICAL_HOST_TYPE LOCALFCNFILEDIR + DEFAULT_PAGER LOCALFCNFILEPATH + ARCHLIBDIR LOCALOCTFILEDIR + BINDIR LOCALOCTFILEPATH + DATADIR LOCALSTARTUPFILEDIR + EXEC_PREFIX LOCALVERARCHLIBDIR + FCNFILEDIR LOCALVERFCNFILEDIR + FCNFILEPATH LOCALVEROCTFILEDIR + IMAGEDIR MAN1DIR + IMAGEPATH MAN1EXT + INCLUDEDIR MANDIR + INFODIR OCTFILEDIR + INFOFILE OCTINCLUDEDIR + LIBDIR OCTLIBDIR + LIBEXECDIR PREFIX + LIBEXECDIR STARTUPFILEDIR + LOCALARCHLIBDIR VERSION +.RE +.TP 8 .B \-v|\-\-version Display the version number of .BR octave (1).
--- a/octave-config.in +++ b/octave-config.in @@ -56,36 +56,36 @@ Options: - -h, -?, --help Print this message. + -h, -?, --help Print this message. - --m-site-dir Print the name of the directory where Octave - expects to find locally installed .m files. + --m-site-dir Print the name of the directory where Octave + expects to find locally installed .m files. - --oct-site-dir Print the name of the directory where Octave - expects to find locally installed .oct files. + --oct-site-dir Print the name of the directory where Octave + expects to find locally installed .oct files. - -v, --version Print the Octave version number. - - --variable VAR Print the value of the given configuration - variable VAR: + -p VAR, --print VAR Print the value of the given configuration + variable VAR. Recognized variables are: - CANONICAL_HOST_TYPE LOCALFCNFILEDIR - DEFAULT_PAGER LOCALFCNFILEPATH - ARCHLIBDIR LOCALOCTFILEDIR - BINDIR LOCALOCTFILEPATH - DATADIR LOCALSTARTUPFILEDIR - EXEC_PREFIX LOCALVERARCHLIBDIR - FCNFILEDIR LOCALVERFCNFILEDIR - FCNFILEPATH LOCALVEROCTFILEDIR - IMAGEDIR MAN1DIR - IMAGEPATH MAN1EXT - INCLUDEDIR MANDIR - INFODIR OCTFILEDIR - INFOFILE OCTINCLUDEDIR - LIBDIR OCTLIBDIR - LIBEXECDIR PREFIX - LIBEXECDIR STARTUPFILEDIR - LOCALARCHLIBDIR VERSION + CANONICAL_HOST_TYPE LOCALFCNFILEDIR + DEFAULT_PAGER LOCALFCNFILEPATH + ARCHLIBDIR LOCALOCTFILEDIR + BINDIR LOCALOCTFILEPATH + DATADIR LOCALSTARTUPFILEDIR + EXEC_PREFIX LOCALVERARCHLIBDIR + FCNFILEDIR LOCALVERFCNFILEDIR + FCNFILEPATH LOCALVEROCTFILEDIR + IMAGEDIR MAN1DIR + IMAGEPATH MAN1EXT + INCLUDEDIR MANDIR + INFODIR OCTFILEDIR + INFOFILE OCTINCLUDEDIR + LIBDIR OCTLIBDIR + LIBEXECDIR PREFIX + LIBEXECDIR STARTUPFILEDIR + LOCALARCHLIBDIR VERSION + + -v, --version Print the Octave version number. EOF exit 0 @@ -99,10 +99,11 @@ -v | --version) echo $VERSION ;; - --variable) + -p | --print) + opt="$1" shift if [ $# -eq 0 ]; then - echo "octave-config: --version option requires argument" 1>&2 + echo "octave-config: $opt option requires argument" 1>&2 exit 1 fi eval echo \${$1}