#! /bin/sh libdir="../../mx/libMx" if [ -f pkgIndex.tcl ]; then rm pkgIndex.tcl fi case $1 in 'cygwin' | 'win32' ) # # The x$PATH = x trick doesn't work on Cygwin if the PATH variable # contains spaces. # PATH="$libdir:$PATH" export PATH libwildcard="*.dll" tclsh="tclsh" ;; 'hpux' ) if [ x${SHLIB_PATH} = x ]; then SHLIB_PATH=$libdir else SHLIB_PATH="$libdir:${SHLIB_PATH}" fi export SHLIB_PATH libwildcard="*.sl" tclsh="tclsh" ;; 'macosx' ) if [ x${DYLD_LIBRARY_PATH} = x ]; then DYLD_LIBRARY_PATH=$libdir else DYLD_LIBRARY_PATH="$libdir:${DYLD_LIBRARY_PATH}" fi export DYLD_LIBRARY_PATH libwildcard="*.dylib" tclsh="tclsh" ;; 'bsd' ) if [ x${LD_LIBRARY_PATH} = x ]; then LD_LIBRARY_PATH=$libdir else LD_LIBRARY_PATH="$libdir:${LD_LIBRARY_PATH}" fi export LD_LIBRARY_PATH libwildcard="*.so" tclsh="tclsh8.4" ;; *) if [ x${LD_LIBRARY_PATH} = x ]; then LD_LIBRARY_PATH=$libdir else LD_LIBRARY_PATH="$libdir:${LD_LIBRARY_PATH}" fi export LD_LIBRARY_PATH libwildcard="*.so" tclsh="tclsh" ;; esac echo "pkg_mkIndex -verbose . *.tcl $libwildcard" | $tclsh