aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1993-04-08 09:32:50 +0000
committerJim Blandy <[email protected]>1993-04-08 09:32:50 +0000
commitf395c83af3356d09b0beb7621fae87c25649c80b (patch)
treec48daf3f8e95f00347c968a3bf5b069580c80e96 /make-dist
parent542143d701e5dd09800bbe88498d626c9356c6fc (diff)
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Don't try to make links to the RCS or Old subdirectories. Use the appropriate extension for the compression type in use. Create the tar file in the shell's initial default directory, not in ${tempparent}. Erase the whole ${tempparent} tree, not just ${tempdir}.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist24
1 files changed, 14 insertions, 10 deletions
diff --git a/make-dist b/make-dist
index d80eaf10a9..6212cbf5c4 100755
--- a/make-dist
+++ b/make-dist
@@ -200,16 +200,16 @@ echo "Making links to \`oldXMenu'."
(cd oldXMenu
ln *.c *.h ../${tempdir}/oldXMenu
ln README Makefile Imakefile ChangeLog ../${tempdir}/oldXMenu
- ln compile.mms descrip.mms ../${tempdir}/oldXMenu)
+ ln compile.com descrip.mms ../${tempdir}/oldXMenu)
echo "Making links to \`etc'."
-### Don't distribute = files, TAGS, DOC files, backups, autosaves, or tex litter.
+### Don't distribute = files, TAGS, DOC files, backups, autosaves, or
+### tex litter.
(cd etc
- ln [0-9a-zA-Z]* ../${tempdir}/etc
+ ln `ls -d * | grep -v 'RCS' | grep -v 'Old'` ../${tempdir}/etc
cd ../${tempdir}/etc
- rm -f DOC* *~ \#*\# *.dvi *.log *,v core
- rm -fr Old
- rm -f =* TAGS)
+ rm -f DOC* *~ \#*\# *.dvi *.log *,v =* core
+ rm -f TAGS)
echo "Making links to \`cpp'."
(cd cpp
@@ -279,15 +279,19 @@ if [ "${make_tar}" = yes ]; then
echo compress
)`
fi
+ case "${default_gzip}" in
+ compress* ) gzip_extension=.Z ;;
+ * ) gzip_extension=.z ;;
+ esac
echo "Creating tar file."
- (cd ${tempparent}
- tar cvf - ${emacsname} | ${default_gzip} > ${emacsname}.tar.Z
- )
+ (cd ${tempparent} ; tar cvf - ${emacsname} ) \
+ | ${default_gzip} \
+ > ${emacsname}.tar${gzip_extension}
fi
if [ "${clean_up}" = yes ]; then
echo "Cleaning up the staging directory."
- rm -rf ${tempdir}
+ rm -rf ${tempparent}
fi
### make-dist ends here