From: Chris Hanson Date: Sun, 7 Mar 2010 07:29:53 +0000 (-0800) Subject: Do just one arch at a time. X-Git-Tag: 20100708-Gtk~126^2~2 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=542237eafe1d6de65bcc12b5100763e0ca34fd53;p=mit-scheme.git Do just one arch at a time. --- diff --git a/dist/make-native-files b/dist/make-native-files index 4cc9fdee8..eb20e4143 100755 --- a/dist/make-native-files +++ b/dist/make-native-files @@ -20,33 +20,48 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA # 02110-1301, USA. -# inputs: source tar, doc image tar -# outputs: scheme binary tars +# inputs: source tar +# outputs: binary tar + +system_args () +{ + (( ${#} == 2 )) || usage + DIST_TYPE=${1} + ARCH=${2} +} +ARGS_FUNCTION=system_args + +system_usage () +{ + echo "usage: ${PROGRAM} TYPE ARCH" + usage_arg_type + echo " ARCH must be 'i386' or 'x86-64'" +} +USAGE_FUNCTION=system_usage . "$(dirname "${0}")"/shared.sh make_output_dir +shift 2 + build () { - local ARCH=${1} my_configure --enable-native-code="${ARCH}" \ --with-mcrypt=no --with-libpq=no --with-db-4=no my_make } -for ARCH in i386 x86-64; do - OUT_ROOT=${NATIVE_OUT}-${ARCH} +OUT_ROOT=${NATIVE_OUT}-${ARCH} - notify "Building binaries for arch ${ARCH}" - unpack_dist_file_to "${DIST_DIR}" "${DIST_DIR}" - run_command "${OUT_ROOT}"-compile "${DIST_DIR}"/src build "${ARCH}" - run_command "${OUT_ROOT}"-clean "${DIST_DIR}"/src/microcode make distclean - my_rm_f "${DIST_DIR}"/src/lib/runtime.com +notify "Building binaries for arch ${ARCH}" +unpack_dist_file_to "${DIST_DIR}" "${DIST_DIR}" +run_command "${OUT_ROOT}"-compile "${DIST_DIR}"/src build +run_command "${OUT_ROOT}"-clean "${DIST_DIR}"/src/microcode make distclean +my_rm_f "${DIST_DIR}"/src/lib/runtime.com - notify "Making tarball" - fixup_perms "${DIST_DIR}" - make_tar_file "${OUT_ROOT}" "${DIST_DIR}"-"${ARCH}" "${DIST_DIR}" - cleanup_temp_files -done +notify "Making tarball" +fixup_perms "${DIST_DIR}" +make_tar_file "${OUT_ROOT}" "${DIST_DIR}"-"${ARCH}" "${DIST_DIR}" +cleanup_temp_files notify_finished