Admin/lib/Tools/makedist_bundle
changeset 53483 74a4685a96c8
parent 53473 28ba604926f1
child 53484 1100982a071c
--- a/Admin/lib/Tools/makedist_bundle	Sun Sep 08 19:25:06 2013 +0200
+++ b/Admin/lib/Tools/makedist_bundle	Mon Sep 09 13:48:06 2013 +0200
@@ -121,19 +121,14 @@
 }
 
 
-# platform-specific patches
+# platform-specific setup (inside archive)
 
 case "$PLATFORM_FAMILY" in
   linux)
     purge_contrib '-name "x86*-darwin" -o -name "x86*-cygwin" -o -name "x86*-windows"'
-    cat > "$ISABELLE_TARGET/$ISABELLE_NAME" <<EOF
-#!/usr/bin/env bash
-
-ISABELLE_TOOL="\$(dirname "\$0")"/bin/isabelle
-JEDIT_HOME="\$("\$ISABELLE_TOOL" getenv -b JEDIT_HOME)"
-
-exec "\$ISABELLE_TOOL" java -classpath "\$JEDIT_HOME/dist/jedit.jar" isabelle.Main "\$@"
-EOF
+    cat "$ISABELLE_HOME/Admin/Linux/Isabelle" | \
+      perl -p -e "s,{JAVA_ARGS},$JEDIT_JAVA_OPTIONS $JEDIT_SYSTEM_OPTIONS,g;" \
+        > "$ISABELLE_TARGET/$ISABELLE_NAME"
     chmod +x "$ISABELLE_TARGET/$ISABELLE_NAME"
     ;;
   macos)
@@ -193,7 +188,7 @@
 tar -C "$TMP" -c -z -f "$BUNDLE_ARCHIVE" "$ISABELLE_NAME" || exit 2
 
 
-# application
+# platform-specific setup (outside archive)
 
 if [ "$ISABELLE_PLATFORM_FAMILY" = linux -a "$PLATFORM_FAMILY" != macos -o "$ISABELLE_PLATFORM_FAMILY" = macos ]
 then