From b9f34c2a285a94b6521b70af94a1e0f7930c730a Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 15 Oct 2011 20:13:45 -0700 Subject: [PATCH] Attempt to set the version strings correctly. --- dist/make-macosx-app | 4 ++-- src/etc/macosx/make-app.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dist/make-macosx-app b/dist/make-macosx-app index c84993c41..901dad59a 100755 --- a/dist/make-macosx-app +++ b/dist/make-macosx-app @@ -52,7 +52,6 @@ compile () { my_configure --enable-native-code="${ARCH}" "${@}" my_make compile-microcode - etc/macosx/make-app.sh } notify "Compiling executable" @@ -60,6 +59,7 @@ unpack_dist_file_to "${ARCH_BASE}" "${DIST_DIR}" run_command "${OUT}"-compile "${DIST_DIR}"/src compile "${@}" notify "Building application bundle" -run_command "${OUT}"-buildapp "${DIST_DIR}"/src etc/macosx/make-app.sh +VERSION_STRING=${RELEASE} \ + run_command "${OUT}"-buildapp "${DIST_DIR}"/src etc/macosx/make-app.sh my_rm_rf "${ARCH_BASE}".app my_mv "${DIST_DIR}"/src/mit-scheme.app "${ARCH_BASE}".app diff --git a/src/etc/macosx/make-app.sh b/src/etc/macosx/make-app.sh index 087ca4147..52d267c6f 100755 --- a/src/etc/macosx/make-app.sh +++ b/src/etc/macosx/make-app.sh @@ -29,11 +29,13 @@ set -e # These values are placeholders; we need to get the right ones. : ${VERSION_STRING=9.1} : ${LONG_VERSION_STRING="release ${VERSION_STRING}"} -: ${MACOSX_MIN_VERSION=10.6} : ${YEAR=$(date +%Y)} : ${bindir=/usr/local/bin} : ${libdir=/usr/local/lib} +MACOSX_VERSION=$(sw_vers | grep ^ProductVersion: | grep -E -o '[0-9]+\.[0-9]+') +: ${MACOSX_MIN_VERSION=${MACOSX_VERSION}} + rm -rf tmp mit-scheme.app # Build directory structure for bundle. -- 2.25.1