# HG changeset patch # User Richard M. Stallman # Date 754486690 0 # Node ID 810820d03e244bbcec96adb8b443c53362a6d0cc # Parent 7242044549aa0548a011aa270564815468cf506c When breaking links, use cp -p. Copy install.sh into distribution. Move the temp dir up into the parent dir; don't leave the staging dir make-dist.tmp... in existence. diff -r 7242044549aa -r 810820d03e24 make-dist --- a/make-dist Sun Nov 28 11:33:43 1993 +0000 +++ b/make-dist Sun Nov 28 11:38:10 1993 +0000 @@ -76,6 +76,16 @@ sleep 5 fi +### Make sure we don't already have a directory emacs-${version}. + +emacsname="emacs-${version}${new_extension}" + +if [ -d ${emacsname} ] +then + echo Directory "${emacsname}" already exists >&2 + exit 1 +fi + ### Make sure the subdirectory is available. tempparent="make-dist.tmp.$$" if [ -d ${tempparent} ]; then @@ -108,8 +118,8 @@ (cd lib-src; make -f Makefile.in getdate.c YACC="bison -y") echo "Creating staging directory: \`${tempparent}'" + mkdir ${tempparent} -emacsname="emacs-${version}${new_extension}" tempdir="${tempparent}/${emacsname}" ### This trap ensures that the staging directory will be cleaned up even @@ -129,9 +139,10 @@ ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} ln ChangeLog Makefile.in build-ins.in configure configure.in ${tempdir} ln make-dist vpath.sed ${tempdir} -### Copy config.guess and config.sub; they're cross-filesystem symlinks. +### Copy these files; they're cross-filesystem symlinks. cp config.sub ${tempdir} cp config.guess ${tempdir} +cp install.sh ${tempdir} echo "Updating version number in README." (cd ${tempdir} @@ -338,6 +349,9 @@ if [ "${clean_up}" = yes ]; then echo "Cleaning up the staging directory." rm -rf ${tempparent} +else + (cd ${tempparent}; mv ${emacsname} ..) + rm -rf ${tempparent} fi ### make-dist ends here