From 2b9c5c68165770a680c6fdd5c2d372dd1c819dbb Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 15 Jan 2000 20:09:02 +0000 Subject: [PATCH] Add code to generate tar file. --- v7/dist/make-dist-files | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/v7/dist/make-dist-files b/v7/dist/make-dist-files index ce1ec7453..de7c01232 100755 --- a/v7/dist/make-dist-files +++ b/v7/dist/make-dist-files @@ -169,3 +169,12 @@ fi # find ${destination} -type f -print | xargs chmod a-w find ${destination} -type d -print | xargs chmod og-w + +tarfile=${destination}.tar.gz +if [ -f ${tarfile} ] +then + rm -f ${tarfile} +fi +(cd ${destination}; tar cvzf ../${tarfile} *) +chmod 444 ${tarfile} +rm -rf ${destination} -- 2.25.1