Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 43 lines (32 sloc) 0.904 kb
#!/bin/bash
# the executable name is whatever link is running this
EXE="`basename \"$0\"`"
if [[ "$PLTHOME" = "" ]]; then
echo "$EXE: PLTHOME has not been set." 1>&2; exit -1
fi
if [[ ! -d "$PLTHOME" ]]; then
echo "$EXE: PLTHOME directory does not exist: $PLTHOME" 1>&2; exit -11
fi
PLTADDONDIR="$PLTHOME/add-on"
export PLTHOME PLTCOLLECTS PLTADDONDIR
# or run this script and give it an executable argument
if [[ "$EXE" = "plt-bin" && "$1" != "" ]]; then EXE="$1"; shift; fi
# short names
if [[ "${#EXE}" -le 5 ]]; then
case "$EXE" in
( r ) EXE="racket" ;;
( dr ) EXE="drracket" ;;
( gr ) EXE="gracket" ;;
esac
fi
BIN="$PLTHOME/racket/bin/$EXE"
# support pre-package repository layout
OLDBIN="$PLTHOME/bin/$EXE"
if [[ -x "$BIN" ]]; then
exec "$BIN" "$@"
elif [[ -x "$OLDBIN" ]]; then
exec "$OLDBIN" "$@"
else
echo "$NAME: no executable at \"$BIN\"."
exit -1
fi
Jump to Line
Something went wrong with that request. Please try again.