From cc4bc8c2b857a36dfc7dea916cec8c70f7423557 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 1 Feb 2000 03:47:39 +0000 Subject: [PATCH] Change to use new prefix. --- v7/dist/make-doc-files | 70 +++++++++++++++++++++++++----------------- v7/dist/make-src-files | 28 +++++------------ 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/v7/dist/make-doc-files b/v7/dist/make-doc-files index c51f78e77..9f2bead8f 100755 --- a/v7/dist/make-doc-files +++ b/v7/dist/make-doc-files @@ -1,46 +1,58 @@ #!/bin/sh -types="texinfo info dvi ps html" - -tldir=documentation-`date +%Y%m%d` +prefix=`/scheme/v7/dist/release-prefix` +tldir=${prefix}/documentation +mkdir ${prefix} mkdir ${tldir} -cd ${tldir} -for type in ${types} -do - mkdir doc-${type} -done +mans="ref-manual user-manual sos" +types="texinfo info dvi ps html" -for man in ref-manual user-manual sos +for type in ${types} do - dir=/scheme/documentation/${man} - cpx ${dir}/*.texinfo doc-texinfo/. - cpx ${dir}/*.info* doc-info/. - cpx ${dir}/*.dvi doc-dvi/. - cpx ${dir}/*.ps doc-ps/. - cpx ${dir}/html/*.html doc-html/. + for man in ${mans} + do + case ${type} in + info) + cpx /scheme/documentation/${man}/*.info* ${tldir} + ;; + html) + cpx /scheme/documentation/${man}/html/*.html ${tldir} + ;; + *) + cpx /scheme/documentation/${man}/*.${type} ${tldir} + ;; + esac + done done -cpx /scheme/v7/linux/lib/edwin/info/dir doc-info/. -cpx /scheme/v7/dist/index.html doc-html/. +cpx /scheme/v7/linux/lib/edwin/info/dir ${tldir} +cpx /scheme/v7/dist/index.html ${tldir} -for type in ${types} -do - chmod 444 doc-${type}/* -done +chmod 444 ${tldir}/* for type in ${types} do - tarfile=doc-${type}.tar.gz - (cd doc-${type}; tar cvzf ../${tarfile} *) + tarfile=${prefix}-doc-${type}.tar.gz + rm -f ${tarfile} + case ${type} in + info) + tar cvzf ${tarfile} ${tldir}/dir ${tldir}/*.info* + ;; + *) + tar cvzf ${tarfile} ${tldir}/*.${type} + ;; + esac chmod 444 ${tarfile} done -zipfile=doc-html.zip -(cd doc-html; zip -l ../${zipfile} *) +zipfile=${prefix}-doc-html.zip +rm -f ${zipfile} +zip -l ${zipfile} ${tldir}/*.html chmod 444 ${zipfile} -rm -rf doc-texinfo -rm -rf doc-info -rm -rf doc-dvi -rm -rf doc-ps +rm -rf doc-html +mkdir doc-html +mv ${tldir}/*.html doc-html + +rm -rf ${tldir} diff --git a/v7/dist/make-src-files b/v7/dist/make-src-files index b3249d894..a1e4e9325 100755 --- a/v7/dist/make-src-files +++ b/v7/dist/make-src-files @@ -1,20 +1,9 @@ #!/bin/sh -if [ $# -ne 1 ] -then - echo "usage: $0 DESTINATION" - exit 1 -fi - +prefix=`/scheme/v7/dist/release-prefix` +mkdir ${prefix} source=/scheme/v7/src -destination=$1 - -if [ -d ${destination} ] -then - echo "DESTINATION must not be an existing directory" - exit 1 -fi - +destination="${prefix}/src" mkdir ${destination} for file in 6001 COPYING Makefile.std TAGS compiler cref edwin microcode rcs runtime sf sos win32 @@ -26,17 +15,16 @@ find ${destination} -type l -name RCS -print | xargs rm find ${destination} -type f -print | xargs chmod a-w find ${destination} -type d -print | xargs chmod g-w -suffix=`date +%Y%m%d` -tarfile=src-${suffix}.tar.gz -zipfile=src-${suffix}.zip -ucfile=gnulinux-ucode-src-${suffix}.tar.gz +tarfile=${prefix}-src.tar.gz +zipfile=${prefix}-src.zip +ucfile=${prefix}-src-ucode-gnu-linux.tar.gz tar cvzf ${tarfile} ${destination} zip -rl ${zipfile} ${destination} (cd ${destination}/microcode; unxutl/config i386-linux) -(cd ${destination}; tar cvzf ../${ucfile} microcode) +tar cvzf ${ucfile} ${destination}/microcode chmod -w ${tarfile} ${zipfile} ${ucfile} -rm -rf ${destination} +rm -rf ${prefix} -- 2.25.1