Fix some bugs.
authorChris Hanson <org/chris-hanson/cph>
Tue, 9 Feb 2010 11:20:15 +0000 (03:20 -0800)
committerChris Hanson <org/chris-hanson/cph>
Tue, 9 Feb 2010 11:20:15 +0000 (03:20 -0800)
dist/make-dist-files

index eb4f61b25d4bedaf90427f1676d676e257f502d9..5c373b17ff0b82b9112d0fdea83da4065fd42e07 100755 (executable)
@@ -52,8 +52,6 @@ TL_DIR=$(pwd)
 BUILD_ROOT=mit-scheme-${VERSION}
 SRC_FILE=${BUILD_ROOT}.tar.gz
 LOCAL_DIR=/usr/local
-BINDIR=${LOCAL_DIR}/bin
-AUXDIR=${LOCAL_DIR}/lib/mit-scheme
 OUTPUT_DIR=.out
 
 if [[ ! -f ${SRC_FILE} ]]; then
@@ -142,8 +140,9 @@ for ARCH in i386 x86-64; do
     SRC_DIR=${BUILD_DIR}/src
     IMAGE_DIR=${BUILD_DIR}-image
     TARFILE=${BUILD_DIR}.tar.gz
-    BINDIR=${IMAGE_DIR}/${LOCAL_DIR}/bin
-    LIBDIR=${IMAGE_DIR}/${LOCAL_DIR}/lib/mit-scheme-${ARCH}
+    IMAGE_LOCAL=${IMAGE_DIR}${LOCAL_DIR}
+    IMAGE_BIN=${IMAGE_LOCAL}/bin
+    IMAGE_LIB=${IMAGE_LOCAL}/lib/mit-scheme-${ARCH}
     STAMP_BUILD=${BUILD_DIR}.stamp
     STAMP_IMAGE=${IMAGE_DIR}.stamp
     STAMP_TAR=${BUILD_DIR}-tar.stamp
@@ -177,11 +176,11 @@ for ARCH in i386 x86-64; do
                make install DESTDIR="${TL_DIR}"/"${IMAGE_DIR}"
            )
            # Don't save system-specific files.
-           rm -rf "${IMAGE_DIR}"/"${BINDIR}"
-           rm -rf "${IMAGE_DIR}"/"${LIBDIR}"/lib
-           rm -f "${IMAGE_DIR}"/"${LIBDIR}"/macosx-starter
+           rm -rf "${IMAGE_BIN}"
+           rm -rf "${IMAGE_LIB}"/lib
+           rm -f "${IMAGE_LIB}"/macosx-starter
            # Merge in doc files.
-           cp -pr "${DOC_IMAGE_DIR}"/* "${IMAGE_DIR}"/"${LIBDIR}"/.
+           cp -pR "${DOC_IMAGE_DIR}"/* "${IMAGE_LIB}"/.
 
            fixup_perms "${IMAGE_DIR}"
            touch "${STAMP_IMAGE}"
@@ -191,7 +190,7 @@ for ARCH in i386 x86-64; do
     if [[ ! -f ${STAMP_TAR} ]]; then
        (
            set -e
-           cd "${IMAGE_DIR}"/usr/local
+           cd "${IMAGE_LOCAL}"
            tar cvzf "${TL_DIR}"/"${TARFILE}" *
            chmod 444 "${TL_DIR}"/"${TARFILE}"
        ) &> "${OUTPUT_DIR}"/"${ARCH}"-tar