equal
deleted
inserted
replaced
148 done |
148 done |
149 |
149 |
150 find . -type f -not -name '*.exe' -not -name '*.dll' -perm +100 \ |
150 find . -type f -not -name '*.exe' -not -name '*.dll' -perm +100 \ |
151 -print0 > "contrib/cygwin/isabelle/executables" |
151 -print0 > "contrib/cygwin/isabelle/executables" |
152 |
152 |
|
153 find . -type l -exec echo "{}" ";" -exec readlink "{}" ";" \ |
|
154 > "contrib/cygwin/isabelle/symlinks" |
|
155 |
153 cat >> "contrib/cygwin/isabelle/postinstall" <<EOF |
156 cat >> "contrib/cygwin/isabelle/postinstall" <<EOF |
154 |
157 |
155 find -type d -exec chmod 755 '{}' + |
158 find -type d -exec chmod 755 '{}' + |
156 find -type f \( -name '*.exe' -o -name '*.dll' \) -exec chmod 755 '{}' + |
159 find -type f \( -name '*.exe' -o -name '*.dll' \) -exec chmod 755 '{}' + |
157 find -type f -not -name '*.exe' -not -name '*.dll' -exec chmod 644 '{}' + |
160 find -type f -not -name '*.exe' -not -name '*.dll' -exec chmod 644 '{}' + |
175 BUNDLE_ARCHIVE="${ARCHIVE_DIR}/${ISABELLE_NAME}_${PLATFORM_FAMILY}.tar.gz" |
178 BUNDLE_ARCHIVE="${ARCHIVE_DIR}/${ISABELLE_NAME}_${PLATFORM_FAMILY}.tar.gz" |
176 |
179 |
177 echo "packaging $(basename "$BUNDLE_ARCHIVE")" |
180 echo "packaging $(basename "$BUNDLE_ARCHIVE")" |
178 tar -C "$TMP" -c -z -f "$BUNDLE_ARCHIVE" "$ISABELLE_NAME" || exit 2 |
181 tar -C "$TMP" -c -z -f "$BUNDLE_ARCHIVE" "$ISABELLE_NAME" || exit 2 |
179 |
182 |
|
183 if [ "$PLATFORM_FAMILY" = windows ] |
|
184 then |
|
185 if type -p 7z >/dev/null |
|
186 then |
|
187 echo "packaging ${ISABELLE_NAME}.7z" |
|
188 ( |
|
189 cd "$TMP" |
|
190 rm -f "${ARCHIVE_DIR}/${ISABELLE_NAME}.7z" |
|
191 7z -y a "${ARCHIVE_DIR}/${ISABELLE_NAME}.7z" "$ISABELLE_NAME" || exit 2 |
|
192 ) |
|
193 fi |
|
194 fi |
180 |
195 |
181 # clean up |
196 # clean up |
182 rm -rf "$TMP" |
197 rm -rf "$TMP" |