From 255323685623b177ec9ce3639111a2b34eee89ec Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 19 Nov 2018 19:50:37 -0800 Subject: [PATCH] Fix create-makefiles.sh to use arch consistently. --- src/etc/create-makefiles.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/etc/create-makefiles.sh b/src/etc/create-makefiles.sh index bce7433f5..75af18874 100755 --- a/src/etc/create-makefiles.sh +++ b/src/etc/create-makefiles.sh @@ -33,16 +33,15 @@ fi HOST_SCHEME_EXE=${1} TARGET_ARCH=${2} -MDIR=`compiler/choose-machine.sh "${TARGET_ARCH}"` - if test -f makefiles_created; then - CODE_TYPE=`cat makefiles_created` - if test "${CODE_TYPE}" = "${MDIR}"; then + MAKEFILE_ARCH=`cat makefiles_created` + if test x"${MAKEFILE_ARCH}" = x"${TARGET_ARCH}"; then echo "Makefiles already created." exit 0 fi fi +MDIR=`compiler/choose-machine.sh "${TARGET_ARCH}"` run_cmd rm -f compiler/machine compiler/compiler.pkg run_cmd ln -s machines/"${MDIR}" compiler/machine run_cmd ln -s machine/compiler.pkg compiler/. @@ -52,7 +51,7 @@ BUNDLES="6001 compiler cref ffi sf sos ssp star-parser xdoc xml" run_cmd ${HOST_SCHEME_EXE} --batch-mode --heap 4000 --no-init-file < ${SUBDIR}/Makefile.in if test -f ${SUBDIR}/Makefile-bundle; then cat ${SUBDIR}/Makefile-bundle >> ${SUBDIR}/Makefile.in @@ -70,5 +69,5 @@ for SUBDIR in ${BUNDLES} runtime win32; do done run_cmd rm -f makefiles_created -echo "echo ${MDIR} > makefiles_created" -echo "${MDIR}" > makefiles_created +echo "echo ${TARGET_ARCH} > makefiles_created" +echo "${TARGET_ARCH}" > makefiles_created -- 2.25.1