36 |
PROGRAM is run w/ ARGS. Options (only one of which may be used at a time): |
PROGRAM is run w/ ARGS. Options (only one of which may be used at a time): |
37 |
--scriptsdir DIR -- Look in DIR for scripts |
--scriptsdir DIR -- Look in DIR for scripts |
38 |
--guileversion VERS -- Look in $pkgdatadir/VERS/scripts for scripts |
--guileversion VERS -- Look in $pkgdatadir/VERS/scripts for scripts |
39 |
|
--source -- Display PROGRAM source (ignore ARGS) to stdout |
40 |
|
|
41 |
Default scripts dir: $default_scriptsdir |
Default scripts dir: $default_scriptsdir |
42 |
EOF |
EOF |
90 |
exit 0 |
exit 0 |
91 |
fi |
fi |
92 |
|
|
93 |
|
if [ x"$1" = x--source ] ; then |
94 |
|
if [ x"$2" = x ] ; then echo $0: need to specify program ; exit 1 ; fi |
95 |
|
if [ -x $scriptsdir/$2 ] ; then |
96 |
|
cat $scriptsdir/$2 |
97 |
|
exit 0 |
98 |
|
else |
99 |
|
echo $0: no such program: $2 |
100 |
|
exit 1 |
101 |
|
fi |
102 |
|
fi |
103 |
|
|
104 |
program=$scriptsdir/$1 |
program=$scriptsdir/$1 |
105 |
shift |
shift |
106 |
|
|