more rigorous "build only" mode: avoid build dialog of logic image and its potential need for GUI display;
authorwenzelm
Fri, 07 Dec 2012 14:30:00 +0100
changeset 50416 2e1b47e22fc6
parent 50415 0d60de55c58a
child 50422 ee729dbd1b7f
more rigorous "build only" mode: avoid build dialog of logic image and its potential need for GUI display;
src/Tools/jEdit/lib/Tools/jedit
--- a/src/Tools/jEdit/lib/Tools/jedit	Fri Dec 07 13:56:01 2012 +0100
+++ b/src/Tools/jEdit/lib/Tools/jedit	Fri Dec 07 14:30:00 2012 +0100
@@ -316,21 +316,18 @@
 fi
 
 
-# build logic
-
-if [ "$NO_BUILD" = false ]; then
-  "$ISABELLE_TOOL" build_dialog "${BUILD_DIALOG_OPTIONS[@]}" -L jedit_logic "$JEDIT_LOGIC"
-  RC="$?"
-  [ "$RC" = 0 ] || exit "$RC"
-fi
-
-
 # main
 
-[ "$BUILD_ONLY" = true ] || {
+if [ "$BUILD_ONLY" = false ]; then
+  if [ "$NO_BUILD" = false ]; then
+    "$ISABELLE_TOOL" build_dialog "${BUILD_DIALOG_OPTIONS[@]}" -L jedit_logic "$JEDIT_LOGIC"
+    RC="$?"
+    [ "$RC" = 0 ] || exit "$RC"
+  fi
+
   export JEDIT_SESSION_DIRS JEDIT_LOGIC JEDIT_PRINT_MODE
 
   exec "$ISABELLE_TOOL" java "${JAVA_ARGS[@]}" \
     -jar "$(jvmpath "$JEDIT_HOME/dist/jedit.jar")" \
     "-settings=$(jvmpath "$JEDIT_SETTINGS")" "${ARGS[@]}"
-}
+fi