From 0893103e5bd8b113efe1cc0d9f6be1eb8248f073 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 17 Oct 2000 17:41:58 +0000 Subject: [PATCH] Generate FreeBSD tar file too. --- v7/dist/make-dist-files | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) 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} -- 2.25.1