4 # Author: Markus Wenzel, TU Muenchen
6 # DESCRIPTION: install standalone Isabelle executables
14 echo "Usage: isabelle $PRG [OPTIONS]"
17 echo " -d DISTDIR refer to DISTDIR as Isabelle distribution"
18 echo " (default ISABELLE_HOME)"
19 echo " -p DIR install standalone binaries in DIR"
21 echo " Install Isabelle executables with absolute references to the current"
22 echo " distribution directory."
34 ## process command line
40 DISTDIR="$ISABELLE_HOME"
43 while getopts "d:p:" OPT
59 shift $(($OPTIND - 1))
64 [ "$#" -ne 0 -o -n "$NO_OPTS" ] && usage
69 echo "referring to distribution at $DISTDIR"
74 if [ -n "$BINDIR" ]; then
75 mkdir -p "$BINDIR" || fail "Bad directory: $BINDIR"
77 for NAME in isabelle isabelle-process
80 DIST="$DISTDIR/bin/$NAME"
81 echo "installing $BIN"
83 echo "#!/usr/bin/env bash" > "$BIN" || fail "Cannot write file: $BIN"
85 echo "exec \"$DIST\" \"\$@\"" >> "$BIN"