/usr/bin/lablgtk2 is in liblablgtk2-ocaml-dev 2.14.2+dfsg-2build1.
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 | #!/bin/sh
thread="no"
localdir="no"
usedll="yes"
threads_lib="system"
verbose="no"
extra="yes"
init="yes"
toplevel="ocaml"
libraries=""
libpath=""
lablgtkdir="/usr/lib/ocaml/lablgtk2"
initobjs="gtkInit.cmo"
thinitobjs="gtkThInit.cmo"
cmd="$0"
if test -n "+lablGL"; then
libpath="-I +lablGL"
fi
while test -n "$1"; do
case $1 in
-help)
echo "Usage: lablgtk2 <options> <ocaml options> [script-file]"
echo " -thread use the threaded version of the toplevel"
echo " -noextra do not load extensions (i.e. only lablgtk.cma)"
echo " -noinit do not initialize gtk"
echo " -localdir use libraries in the same directory (before install)"
echo " -verbose show actions executed"
exit 0
;;
-thread) thread=yes ;;
-localdir) localdir=yes ;;
-noextra) extra=no ;;
-noinit) init=no ;;
-nothinit) thinitobjs="" ;;
-verbose) verbose=yes ;;
*) break ;;
esac
shift
done
if test $localdir = yes; then
lablgtkdir=`dirname "$cmd"`
CAML_LD_LIBRARY_PATH=${lablgtkdir}:$CAML_LD_LIBRARY_PATH
if test $verbose = yes; then
echo CAML_LD_LIBRARY_PATH=$CAML_LD_LIBRARY_PATH
fi
fi
libpath="-I $lablgtkdir $libpath"
if test $extra = yes; then
libraries="lablgl.cma lablgtk.cma lablgtkgl.cma lablglade.cma lablgnomecanvas.cma lablgnomeui.cma lablrsvg.cma lablgtkspell.cma lablgtksourceview2.cma"
else
libraries="lablgtk.cma"
fi
if test $thread = yes; then
case "$threads_lib" in
no) echo "Threads are not supported on this platform"; exit 2 ;;
system) libpath="$libpath -I +threads"
libraries="unix.cma threads.cma $libraries gtkThread.cmo" ;;
*) libpath="$libpath -I +vmthreads"
usedll="no" ;; # use different stdlib.cma
esac
initobjs="$initobjs $thinitobjs"
elif test $extra = yes; then
case "$threads_lib" in
system) libraries="unix.cma $libraries";;
*) usedll="no";; # some libraries require posix threads
esac
fi
if test $usedll = no; then
toplevel="$lablgtkdir/lablgtktop"
libraries=""
fi
if test $init = yes; then
libraries="$libraries $initobjs"
fi
if test $verbose = yes; then echo $toplevel -w s $libpath $libraries $*; fi
exec $toplevel -w s $libpath $libraries $*
|