/usr/bin/gxint is in geant321 1:3.21.14.dfsg-11.
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 169 170 171 172 | #!/bin/bash
#
#*******************************************
#
#@(#) GXINT link (and run) interactive GEANT.
#@(#) $Header: /afs/cern.ch/asis/share/cern/CVS/scripts/gxint,v 1.3 2005/04/18 15:23:13 mclareni Exp $
#
# Author: G.Folger 92/02/25
#
# Modifications:
# 8 June 93 fix @ to + for patchy
# Jan/Feb 94 use cernlib, adapt to geant316
# 7 Apr 94 correct for Ultrix ( no set -- in sh),
# add ; in -o option handling
# following mods are kept in the RCS log
#
#*******************************************
line="******************************************************"
print_help() {
cat << EoD
GXINT [options] file(s)
ld an interactive Geant application and run it. Your compiled
routines are given in file(s).
options:
-d driver
specify the driver for the graphics output. Possible
values are X11, Motif, GKS, or GDDM. Not all are available
on all systems. X11 is the default.
-v version
version of the program library to use. Possible values
include pro, new and old. This option only makes sense if you
have installed a non-Debian version of CERNLIB. In that case
you must have defined the environment variable \$CERN.
-g geant_version
which version of geant to use. Current default is 321. This
also makes sense only if you have installed a non-Debian version
of CERNLIB.
-h host
useful with the -d X11 option only. Specify the hostname
used for the display. Syntax identical to that of DISPLAY.
If no hostname is specified, the value of DISPLAY is used.
-o outputfile
Do not immediately run GEANT, but produce an executable
file named outputfile.
-L path
additional loader search path. Useful if additional libraries
are specified with -l option. This option may be repeated to
more than one pathname.
-l library
specify additional libraries. This option may be repeated to
add several libs.
-m do NOT use main program from cernlib area.
EoD
}
if [ $# -eq 0 ] ; then
print_help
fi
if [ -f /usr/bin/uname ] ; then
system=`/usr/bin/uname`
if [ "$system" = "ULTRIX" -a -z "$sh5" ] ; then
sh5="yes"
export sh5
/bin/sh5 $0 $*
exit
fi
fi
SHOPT="d:v:g:h:o:L:l:m"
# Check option set and give default values
if [ -f /bin/getopt -o -f /usr/bin/getopt ] ; then
set -- `getopt $SHOPT $*` ; cc=$?
if [ $cc -ne 0 ] ; then
echo ""
echo "Usage:"
print_help ; exit 0
fi
fi
if [ -z "$TMPDIR" ] || [ "$TMPDIR" = "/tmp" ] ; then
TMPDIR="$HOME"
fi
drv="/X11" ; ver="" ; OUT="$TMPDIR/GEANT$$"
gxint=""
while [ $# -gt 0 ]
do case $1 in
-d) drv="/$2"; shift ;;
-v) ver=$2; shift ;;
-g) gvs=$2; shift ;;
-h) DISPLAY=$2;export DISPLAY; shift ;;
-o) OUT=$2; norun="1"; shift ;;
-L) userpath="$userpath -L$2"; shift ;;
-l) userlibs="$userlibs -l$2"; shift ;;
-m) _m="1" ;;
--) shift ; break ;;
--help|-\?) print_help ; exit 0 ;;
*) break ;;
esac
shift
done
if [ $# -gt 0 ] ; then
pgm="$@"
else
echo "gxint_Warning: no user program specified"
fi
[ -z "$CERN" ] && export CERN="/usr"
if [ "$drv" = "/GKS" ] ; then
if [ -z "$GKSR" ] ; then
if [ ! -d $CERN/gks/$ver ] ; then
echo "gxint_Error: shell variable GKSR must be set or "
echo " : $CERN/gks/$ver must exist"
exit 1
fi
GKSR=$CERN/gks/$ver
fi
GKSP=$GKSR/lib
fi
LDN="f77"
_o="o"
system="x"
[ -x /bin/uname ] && system=`/bin/uname`
[ -x /usr/bin/uname ] && system=`/usr/bin/uname`
[ -x /sys5.3/bin/uname ] && system=`/sys5.3/bin/uname`
case $system in
AIX) LDN="xlf" ;;
ConvexOS) LDN="fc" ;;
DomainOS) LDN="ld" ;_o="bin" ;;
HP-UX) LDN="fort77";;
Linux) LDN="gfortran" ;;
esac
CLIB="geant${gvs} pawlib graflib$drv packlib mathlib"
[ -z "$_m" ] && gxint="${CERN}/${ver}/lib/gxint${gvs}.$_o"
[ "$CERN" = "/usr" -a -z "$ver" ] && gxint=/usr/share/geant321/gxint.f
cat << EoD
$line
* loading interactive Geant
* creating : $OUT
* loader used : $LDN
* user library path : $userpath
* user libraries : $userlibs
* Cern libraries : $CLIB
* gxint used : ${gxint:-user supplied}
$line
EoD
[ -z "$ver" ] && verflag="" || verflag="-v"
$LDN -o $OUT $gxint $pgm $userpath $userlibs `cernlib $verflag $ver $CLIB` ; \
cc=$?
[ $cc -ne 0 ] && exit $cc
if [ ${norun-0} -eq 0 ] ; then
$OUT ; cc=$?
fi
exit $cc
|