Listing 3
#!/bin/sh
MY_PACKAGE_ROOT=/usr/local/apps/PackRoot; export MY_PACKAGE_ROOT
PATH=${MY_PACKAGE_ROOT}/bin:$PATH
PROG=`basename $0`
case $PROG in
super|Super) exec ${MY_PACKAGE_ROOT}/bin/PackageName $* ;;
db) exec ${MY_PACKAGE_ROOT}/bin/PackagePlus -z -T noise $* ;;
*) echo "Programmer error: $PROG doesn't exist";
exit 1 ;;
esac
|