#!/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}
#!/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
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}