+++ /dev/null
-#!/bin/bash
-#
-# Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
-# 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-# 2005, 2006, 2007, 2008, 2009, 2010 Massachusetts Institute of
-# Technology
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or (at
-# your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# inputs: ucode tar, scheme binary tars
-# outputs: system-specific tar
-
-system_args ()
-{
- (( ${#} >= 3 )) || usage
- DIST_TYPE=${1}
- ARCH=${2}
- SYSTEM=${3}
-}
-ARGS_FUNCTION=system_args
-
-system_usage ()
-{
- echo "usage: ${PROGRAM} TYPE ARCH SYSTEM [OPTIONS]"
- usage_arg_type
- echo " ARCH must be 'i386' or 'x86-64'"
- echo " SYSTEM is the operating system identifier"
- echo " OPTIONS are passed to the configure script"
-}
-USAGE_FUNCTION=system_usage
-
-. "$(dirname "${0}")"/shared.sh
-make_output_dir
-
-shift 3
-
-OUT=${SYSTEM_OUT}-${ARCH}-${SYSTEM}
-ARCH_BASE=${DIST_DIR}-${ARCH}
-SYSTEM_BASE=${ARCH_BASE}-${SYSTEM}
-UCODE_DIR=${DIST_DIR}/src/microcode
-IMAGE_DIR=temp_image_dir
-LIB_DIR=lib/mit-scheme-"${ARCH}"
-
-compile ()
-{
- my_configure --enable-native-code="${ARCH}" "${@}"
- my_make
-}
-
-make_image ()
-{
- make install DESTDIR="${TL_DIR}"/"${IMAGE_DIR}"
-}
-
-notify "Compiling executable"
-unpack_dist_file_to "${UCODE_BASE}" "${DIST_DIR}"
-run_command "${OUT}"-compile "${UCODE_DIR}" compile "${@}"
-
-notify "Making image directory"
-new_temp_dir "${IMAGE_DIR}"
-run_command "${OUT}"-image "${UCODE_DIR}" make_image
-unpack_dist_file_to "${ARCH_BASE}" "${SYSTEM_BASE}"
-my_mv "${IMAGE_DIR}"/usr/local/bin "${SYSTEM_BASE}"/.
-my_mv "${IMAGE_DIR}"/usr/local/"${LIB_DIR}"/lib "${SYSTEM_BASE}"/"${LIB_DIR}"/.
-
-notify "Making archive file"
-make_tar_file "${OUT}" "${SYSTEM_BASE}"
-
-notify_finished