From: Chris Hanson Date: Tue, 17 Oct 2000 17:41:58 +0000 (+0000) Subject: Generate FreeBSD tar file too. X-Git-Tag: 20090517-FFI~3246 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=0893103e5bd8b113efe1cc0d9f6be1eb8248f073;p=mit-scheme.git Generate FreeBSD tar file too. --- diff --git a/v7/dist/make-dist-files b/v7/dist/make-dist-files index ab92a811c..d80acd0d0 100755 --- a/v7/dist/make-dist-files +++ b/v7/dist/make-dist-files @@ -6,10 +6,6 @@ if [ "${type}" = "" ] then type="std" fi -if [ "${destination}" = "" ] -then - destination="`/scheme/v7/dist/release-prefix`-ix86-gnu-linux" -fi case "${type}" in 6001|all|std|scmutils) @@ -177,8 +173,23 @@ fi find ${build_dir} -type f -print | xargs chmod a-w find ${build_dir} -type d -print | xargs chmod og-w -tarfile=${destination}.tar.gz -rm -f ${tarfile} -(cd ${build_dir}; tar cvzf ../${tarfile} *) -chmod 444 ${tarfile} +make_tarfile () +{ + tarfile=${1}.tar.gz + rm -f ${tarfile} + (cd ${build_dir}; tar cvzf ../${tarfile} *) + chmod 444 ${tarfile} +} + +if [ "${destination}" = "" ] +then + pre="`/scheme/v7/dist/release-prefix`-ix86" + make_tarfile "${pre}-gnu-linux" + rm -f ${build_dir}/bin/* + cpx ../freebsd-bin/* ${build_dir}/bin/. + make_tarfile "${pre}-freebsd" +else + make_tarfile ${destination} +fi + rm -rf ${build_dir}