{
my_configure --enable-native-code="${ARCH}" "${@}"
my_make compile-microcode
- etc/macosx/make-app.sh
}
notify "Compiling executable"
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
# 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.