Mercurial > octave-nkf
comparison octave-config.in @ 3845:d68c34dc9c25
[project @ 2001-07-26 02:11:05 by jwe]
author | jwe |
---|---|
date | Thu, 26 Jul 2001 02:11:05 +0000 |
parents | |
children | aa345723c698 |
comparison
equal
deleted
inserted
replaced
3844:87f85453b6b7 | 3845:d68c34dc9c25 |
---|---|
1 #! /bin/sh - | |
2 # | |
3 # octave-config - reports some configuration values for Octave | |
4 # | |
5 # Rafael Laboissiere <rafael@laboissiere.net> | |
6 # This script is in the public domain | |
7 | |
8 VERSION="%OCTAVE_VERSION%" | |
9 OCT_SITE_DIR="%OCTAVE_LOCALVEROCTFILEDIR%" | |
10 M_SITE_DIR="%OCTAVE_LOCALVERFCNFILEDIR%" | |
11 | |
12 usage_msg="usage: octave-config [options]" | |
13 | |
14 if [ $# -eq 0 ]; then | |
15 echo "$usage_msg" 1>&2 | |
16 exit 1 | |
17 fi | |
18 | |
19 for arg | |
20 do | |
21 case "$1" in | |
22 -h | -\? | --help) | |
23 echo "$usage_msg" | |
24 cat << EOF | |
25 | |
26 Options: | |
27 | |
28 -h, -?, --help Print this message. | |
29 | |
30 --m-site-dir Print the name of the directory where Octave | |
31 expects to find locally installed .m files. | |
32 | |
33 --oct-site-dir Print the name of the directory where Octave | |
34 expects to find locally installed .oct files. | |
35 | |
36 -v, --version Print the Octave version number. | |
37 | |
38 EOF | |
39 exit 0 | |
40 ;; | |
41 --m-site-dir) | |
42 echo $M_SITE_DIR | |
43 ;; | |
44 --oct-site-dir) | |
45 echo $OCT_SITE_DIR | |
46 ;; | |
47 -v | --version) | |
48 echo $VERSION | |
49 ;; | |
50 *) | |
51 echo "octave-config: unrecognized argument $1" 2>&1 | |
52 exit 1 | |
53 ;; | |
54 esac | |
55 shift | |
56 done |