# HG changeset patch # User wenzelm # Date 1378391941 -7200 # Node ID d47a7cebe6b24188ac3cd9a170c0a9d0aaaf4681 # Parent 32ec957e5c3e8347a31f932b885f1184a3015ae9 standardize jdk name; check tar errors; diff -r 32ec957e5c3e -r d47a7cebe6b2 Admin/lib/Tools/makedist_bundle --- a/Admin/lib/Tools/makedist_bundle Thu Sep 05 16:03:44 2013 +0200 +++ b/Admin/lib/Tools/makedist_bundle Thu Sep 05 16:39:01 2013 +0200 @@ -48,7 +48,7 @@ ISABELLE_TARGET="$TMP/$ISABELLE_NAME" -tar -C "$TMP" -x -z -f "$ARCHIVE" +tar -C "$TMP" -x -z -f "$ARCHIVE" || exit 2 # bundled components @@ -83,10 +83,18 @@ perl -e "exit((stat('${CONTRIB}'))[7] == 0 ? 0 : 1);" && exit 2 fi - tar -C "$ISABELLE_TARGET/contrib" -x -z -f "$CONTRIB" + tar -C "$ISABELLE_TARGET/contrib" -x -z -f "$CONTRIB" || exit 2 if [ -f "$COMPONENT_DIR/etc/settings" -o -f "$COMPONENT_DIR/etc/components" ] then - echo "contrib/$COMPONENT" >> "$ISABELLE_TARGET/etc/components" + case "$COMPONENT" in + jdk-*) + mv "$ISABELLE_TARGET/contrib/$COMPONENT" "$ISABELLE_TARGET/contrib/jdk" + echo "contrib/jdk" >> "$ISABELLE_TARGET/etc/components" + ;; + *) + echo "contrib/$COMPONENT" >> "$ISABELLE_TARGET/etc/components" + ;; + esac fi ;; esac @@ -202,7 +210,7 @@ cp -R "$APP_TEMPLATE/Resources/." "$APP/Contents/Resources/." cp "$APP_TEMPLATE/../isabelle.icns" "$APP/Contents/Resources/." - ln -sf "../Resources/${ISABELLE_NAME}/contrib/jdk-7u21/x86_64-darwin/jdk1.7.0_21.jdk" \ + ln -sf "../Resources/${ISABELLE_NAME}/contrib/jdk/x86_64-darwin" \ "$APP/Contents/PlugIns/jdk" cp macos_app/JavaAppLauncher "$APP/Contents/MacOS/." && \