From octave-sources-request at bevo dot che dot wisc dot edu Wed Dec 19 09:46:28 2001 Subject: Improved octave-config.in From: Rafael Laboissiere To: octave-sources at bevo dot che dot wisc dot edu Date: Wed, 19 Dec 2001 16:40:47 +0100 --Qrgsu6vtpU/OV/zm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Attached below is the octave-config.in script modified from the latest development release of Octave. I added the option --bin-site-dir, which prints the value of OCTAVE_LOCALVERARCHLIBDIR. This may be useful for configuring the octave-forge package. -- Rafael Laboissiere --Qrgsu6vtpU/OV/zm Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="octave-config.in" #! /bin/sh - # # octave-config - reports some configuration values for Octave # # Rafael Laboissiere # This script is in the public domain VERSION="%OCTAVE_VERSION%" OCT_SITE_DIR="%OCTAVE_LOCALVEROCTFILEDIR%" M_SITE_DIR="%OCTAVE_LOCALVERFCNFILEDIR%" BIN_SITE_DIR="%OCTAVE_LOCALVERARCHLIBDIR%" usage_msg="usage: octave-config [options]" if [ $# -eq 0 ]; then echo "$usage_msg" 1>&2 exit 1 fi for arg do case "$1" in -h | -\? | --help) echo "$usage_msg" cat << EOF Options: -h, -?, --help Print this message. --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. --bin-site-dir Print the name of the directory where Octave expects to find locally installed executable files. -v, --version Print the Octave version number. EOF exit 0 ;; --m-site-dir) echo $M_SITE_DIR ;; --oct-site-dir) echo $OCT_SITE_DIR ;; --bin-site-dir) echo $BIN_SITE_DIR ;; -v | --version) echo $VERSION ;; *) echo "octave-config: unrecognized argument $1" 2>&1 exit 1 ;; esac shift done --Qrgsu6vtpU/OV/zm--