JAL-3907 added creation of symbolic links to workaround an install4j9 problem with...
authorBen Soares <b.soares@dundee.ac.uk>
Mon, 1 Nov 2021 17:31:34 +0000 (17:31 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Mon, 1 Nov 2021 17:31:34 +0000 (17:31 +0000)
utils/download_jres.sh

index 5aa4b57..8029e82 100755 (executable)
@@ -100,6 +100,10 @@ for FEATURE_VERSION in 8 11 17; do
             echo "Creating ${NAME}.${EXT} for install4j bundling"
             [ \! -d ${ARCHIVEDIR} ] && mkdir -p "${ARCHIVEDIR}"
             $TAR -C "${JREDIR}" -zcf "${ARCHIVEDIR}/${NAME}.${EXT}" .
+            # make symbolic link with _ instead of - for install4j9
+            NEWNAME=${NAME//-/_}
+            echo "Linking from ${NEWNAME}.${EXT} for install4j9"
+            ln -s "${NAME}.${EXT}" "${ARCHIVEDIR}/${NEWNAME}.${EXT}"
             ;;
           *)
             echo "Archiving as '${CREATEARCHIVE}' file not supported"