This file is indexed.

/usr/bin/octave-config-3.2.4 is in octave3.2-headers 3.2.4-12.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#! /bin/sh -
##
## octave-config - reports some configuration values for Octave
##
## Copyright (C) 2001, 2003, 2006, 2007 John W. Eaton
##
## This file is part of Octave.
##
## Octave is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or (at
## your option) any later version.
##
## Octave is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Octave; see the file COPYING.  If not, see
## <http://www.gnu.org/licenses/>.
## 
## Original version by Rafael Laboissiere <rafael@laboissiere.net>
## distributed as free software in the public domain.

API_VERSION="api-v37"
CANONICAL_HOST_TYPE="x86_64-pc-linux-gnu"
DEFAULT_PAGER="pager"
ARCHLIBDIR="/usr/lib/octave/3.2.4/exec/x86_64-pc-linux-gnu"
BINDIR="/usr/bin"
DATADIR="/usr/share"
DATAROOTDIR="/usr/share"
EXEC_PREFIX="/usr"
FCNFILEDIR="/usr/share/octave/3.2.4/m"
IMAGEDIR="/usr/share/octave/3.2.4/imagelib"
INCLUDEDIR="/usr/include"
INFODIR="/usr/share/info"
INFOFILE="/usr/share/info/octave3.2.info"
LIBDIR="/usr/lib"
LIBEXECDIR="/usr/lib"
LOCALAPIARCHLIBDIR="/usr/lib/octave/api-v37/site/exec/x86_64-pc-linux-gnu"
LOCALAPIFCNFILEDIR="/usr/share/octave/site/api-v37/m"
LOCALAPIOCTFILEDIR="/usr/lib/octave/site/oct/api-v37/x86_64-pc-linux-gnu"
LOCALARCHLIBDIR="/usr/lib/octave/site/exec/x86_64-pc-linux-gnu"
LOCALFCNFILEDIR="/usr/share/octave/site/m"
LOCALOCTFILEDIR="/usr/lib/octave/site/oct/x86_64-pc-linux-gnu"
LOCALSTARTUPFILEDIR="/usr/share/octave/site/m/startup"
LOCALVERARCHLIBDIR="/usr/lib/octave/3.2.4/site/exec/x86_64-pc-linux-gnu"
LOCALVERFCNFILEDIR="/usr/share/octave/3.2.4/site/m"
LOCALVEROCTFILEDIR="/usr/lib/octave/3.2.4/site/oct/x86_64-pc-linux-gnu"
MAN1DIR="/usr/share/man/man1"
MAN1EXT=".1"
MANDIR="/usr/share/man"
OCTFILEDIR="/usr/lib/octave/3.2.4/oct/x86_64-pc-linux-gnu"
OCTINCLUDEDIR="/usr/include/octave-3.2.4"
OCTLIBDIR="/usr/lib/octave-3.2.4"
PREFIX="/usr"
STARTUPFILEDIR="/usr/share/octave/3.2.4/m/startup"
VERSION="3.2.4"

if [ -n "$OCTAVE_HOME" ]; then
  ARCHLIBDIR="`echo $ARCHLIBDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  BINDIR="`echo $BINDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  DATADIR="`echo $DATADIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  DATAROOTDIR="`echo $DATAROOTDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  EXEC_PREFIX="`echo $EXEC_PREFIX | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  FCNFILEDIR="`echo $FCNFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  IMAGEDIR="`echo $IMAGEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  INCLUDEDIR="`echo $INCLUDEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  INFODIR="`echo $INFODIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  INFOFILE="`echo $INFOFILE | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LIBDIR="`echo $LIBDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LIBEXECDIR="`echo $LIBEXECDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LOCALAPIARCHLIBDIR="`echo $LOCALAPIARCHLIBDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LOCALAPIFCNFILEDIR="`echo $LOCALAPIFCNFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LOCALAPIOCTFILEDIR="`echo $LOCALAPIOCTFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LOCALARCHLIBDIR="`echo $LOCALARCHLIBDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LOCALFCNFILEDIR="`echo $LOCALFCNFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LOCALOCTFILEDIR="`echo $LOCALOCTFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LOCALSTARTUPFILEDIR="`echo $LOCALSTARTUPFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LOCALVERARCHLIBDIR="`echo $LOCALVERARCHLIBDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LOCALVERFCNFILEDIR="`echo $LOCALVERFCNFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  LOCALVEROCTFILEDIR="`echo $LOCALVEROCTFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  MAN1DIR="`echo $MAN1DIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  MANDIR="`echo $MANDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  OCTFILEDIR="`echo $OCTFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  OCTINCLUDEDIR="`echo $OCTINCLUDEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  OCTLIBDIR="`echo $OCTLIBDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"
  STARTUPFILEDIR="`echo $STARTUPFILEDIR | sed "s,^$PREFIX,$OCTAVE_HOME,"`"

  PREFIX="$OCTAVE_HOME"
fi

usage_msg="usage: octave-config [options]"

if [ $# -eq 0 ]; then
  echo "$usage_msg" 1>&2
  exit 1
fi

while [ $# -gt 0 ]
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.

  -p VAR, --print VAR   Print the value of the given configuration
		        variable VAR.  Recognized variables are:

			  API_VERSION	         LOCALAPIARCHLIBDIR
			  CANONICAL_HOST_TYPE	 LOCALAPIFCNFILEDIR
			  DEFAULT_PAGER	         LOCALAPIOCTFILEDIR
			  ARCHLIBDIR	         LOCALARCHLIBDIR
			  BINDIR	         LOCALFCNFILEDIR
			  DATADIR	         LOCALOCTFILEDIR
			  EXEC_PREFIX	         LOCALSTARTUPFILEDIR
			  FCNFILEDIR	         LOCALVERARCHLIBDIR
			  LOCALVEROCTFILEDIR	 LOCALVERFCNFILEDIR
			  IMAGEDIR	         MAN1DIR
			  MAN1EXT	         MANDIR
			  INCLUDEDIR	         OCTFILEDIR
			  INFODIR	         OCTINCLUDEDIR
			  INFOFILE	         OCTLIBDIR
			  LIBDIR	         PREFIX
			  LIBEXECDIR	         STARTUPFILEDIR
			  LIBEXECDIR		 VERSION

  -v, --version         Print the Octave version number.

EOF
      exit 0
    ;;
    --m-site-dir)
      echo $LOCALVERFCNFILEDIR
    ;;
    --oct-site-dir)
      echo $LOCALVEROCTFILEDIR
    ;;
    -v | --version)
      echo $VERSION
    ;;
    -p | --print)
      opt="$1"
      shift
      if [ $# -eq 0 ]; then
        echo "octave-config: $opt option requires argument" 1>&2
        exit 1
      fi
      eval echo \${$1}
    ;;
    *)
      echo "octave-config: unrecognized argument $1" 2>&1
      exit 1
    ;;
  esac
  shift
done