--- a/lib/Tools/expandshort Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/Tools/expandshort Tue Jan 12 12:17:53 1999 +0100
@@ -32,4 +32,7 @@
## main
-find $SPECS -name \*.ML -print | xargs perl -w $ISABELLE_HOME/lib/scripts/expandshort.pl
+#set by configure
+AUTO_PERL=perl
+
+find $SPECS -name \*.ML -print | xargs $AUTO_PERL -w $ISABELLE_HOME/lib/scripts/expandshort.pl
--- a/lib/Tools/fixclasimp Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/Tools/fixclasimp Tue Jan 12 12:17:53 1999 +0100
@@ -32,4 +32,7 @@
## main
-find $SPECS -name \*.ML -print | xargs perl -w $ISABELLE_HOME/lib/scripts/fixclasimp.pl
+#set by configure
+AUTO_PERL=perl
+
+find $SPECS -name \*.ML -print | xargs $AUTO_PERL -w $ISABELLE_HOME/lib/scripts/fixclasimp.pl
--- a/lib/Tools/fixdatatype Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/Tools/fixdatatype Tue Jan 12 12:17:53 1999 +0100
@@ -32,5 +32,8 @@
## main
+#set by configure
+AUTO_PERL=perl
+
find $SPECS \( -name \*.thy -o -name \*.ML \) -print | \
- xargs perl -w $ISABELLE_HOME/lib/scripts/fixdatatype.pl
+ xargs $AUTO_PERL -w $ISABELLE_HOME/lib/scripts/fixdatatype.pl
--- a/lib/Tools/fixdots Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/Tools/fixdots Tue Jan 12 12:17:53 1999 +0100
@@ -32,5 +32,8 @@
## main
+#set by configure
+AUTO_PERL=perl
+
find $SPECS \( -name \*.thy -o -name \*.ML \) -print | \
- xargs perl -w $ISABELLE_HOME/lib/scripts/fixdots.pl
+ xargs $AUTO_PERL -w $ISABELLE_HOME/lib/scripts/fixdots.pl
--- a/lib/Tools/fixgoal Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/Tools/fixgoal Tue Jan 12 12:17:53 1999 +0100
@@ -32,4 +32,7 @@
## main
-find $SPECS -name \*.ML -print | xargs perl -w $ISABELLE_HOME/lib/scripts/fixgoal.pl
+#set by configure
+AUTO_PERL=perl
+
+find $SPECS -name \*.ML -print | xargs $AUTO_PERL -w $ISABELLE_HOME/lib/scripts/fixgoal.pl
--- a/lib/Tools/fixseq Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/Tools/fixseq Tue Jan 12 12:17:53 1999 +0100
@@ -32,4 +32,7 @@
## main
-find $SPECS -name \*.ML -print | xargs perl -w $ISABELLE_HOME/lib/scripts/fixseq.pl
+#set by configure
+AUTO_PERL=perl
+
+find $SPECS -name \*.ML -print | xargs $AUTO_PERL -w $ISABELLE_HOME/lib/scripts/fixseq.pl
--- a/lib/Tools/install Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/Tools/install Tue Jan 12 12:17:53 1999 +0100
@@ -61,8 +61,8 @@
mkdir -p "$BINDIR" || fail "Bad directory: $BINDIR"
-BASH=$(type -path bash)
-[ -z "$BASH" ] && fail "Cannot find bash!"
+#set by configure
+AUTO_BASH=/bin/bash
echo "using $DISTDIR"
@@ -71,7 +71,7 @@
BIN="$BINDIR/$NAME"
DIST="$DISTDIR/bin/$NAME"
echo "installing $BIN"
- echo "#!$BASH" >$BIN || fail "Cannot write file: $BIN"
+ echo "#!$AUTO_BASH" >$BIN || fail "Cannot write file: $BIN"
echo >>$BIN
echo "exec $DIST \"\$@\"" >>$BIN
chmod +x $BIN
--- a/lib/Tools/logo Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/Tools/logo Tue Jan 12 12:17:53 1999 +0100
@@ -69,9 +69,12 @@
OUTFILE="isabelle${OUTFILE}.eps"
fi
+#set by configure
+AUTO_PERL=perl
+
if [ "$OUTFILE" = "-" ]; then
- perl -p -e "s/<any>/$NAME/" $ISABELLE_HOME/lib/logo/isabelle_any.eps
+ $AUTO_PERL -p -e "s/<any>/$NAME/" $ISABELLE_HOME/lib/logo/isabelle_any.eps
else
[ -z "$QUIET" ] && echo "$OUTFILE" >&2
- perl -p -e "s/<any>/$NAME/" $ISABELLE_HOME/lib/logo/isabelle_any.eps > $OUTFILE
+ $AUTO_PERL -p -e "s/<any>/$NAME/" $ISABELLE_HOME/lib/logo/isabelle_any.eps > $OUTFILE
fi
--- a/lib/Tools/nonascii Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/Tools/nonascii Tue Jan 12 12:17:53 1999 +0100
@@ -29,6 +29,9 @@
## main
+#set by configure
+AUTO_PERL=perl
+
find $SPECS \( -name \*.ML -o -name \*.thy \) -print | \
- xargs perl -w -e \
+ xargs $AUTO_PERL -w -e \
'while(<ARGV>) { if (m/[\x80-\xff]/) { print "$ARGV: $_"; }}'
--- a/lib/Tools/symbolinput Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/Tools/symbolinput Tue Jan 12 12:17:53 1999 +0100
@@ -4,4 +4,7 @@
#
# DESCRIPTION: translate symbols into \<...> sequences
-exec perl -w $ISABELLE_HOME/lib/scripts/symbolinput.pl "$@"
+#set by configure
+AUTO_PERL=perl
+
+exec $AUTO_PERL -w $ISABELLE_HOME/lib/scripts/symbolinput.pl "$@"
--- a/lib/scripts/feeder Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/scripts/feeder Tue Jan 12 12:17:53 1999 +0100
@@ -79,4 +79,7 @@
## main
-exec perl -w $DIR/feeder.pl "$HEAD" "$EMITPID" "$QUIT" "$SYMBOLS" "$TAIL"
+#set by configure
+AUTO_PERL=perl
+
+exec $AUTO_PERL -w $DIR/feeder.pl "$HEAD" "$EMITPID" "$QUIT" "$SYMBOLS" "$TAIL"
--- a/lib/scripts/patch-scripts.bash Mon Jan 11 18:45:46 1999 +0100
+++ b/lib/scripts/patch-scripts.bash Tue Jan 12 12:17:53 1999 +0100
@@ -38,7 +38,9 @@
for FILE in $(find . -type f -print)
do
if [ -x "$FILE" ]; then
- sed -e "s:^#!.*/bash:#!$BASH:" -e "s:^#!.*/perl:#!$PERL:" $FILE >$FILE~~
+ sed -e "s:^#!.*/bash:#!$BASH:" -e "s:^#!.*/perl:#!$PERL:" \
+ -e "s:^AUTO_BASH=.*/bash:AUTO_BASH=$BASH:" \
+ -e "s:^AUTO_PERL=.*/bash:AUTO_PERL=$PERL:" $FILE >$FILE~~
if cmp -s $FILE $FILE~~; then
rm $FILE~~
else