summaryrefslogtreecommitdiff
path: root/make-dist
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-11-28 11:38:10 +0000
committerRichard M. Stallman <rms@gnu.org>1993-11-28 11:38:10 +0000
commit87b40b2fcf0c33627efd1a5a57f0c51cd243f7e0 (patch)
tree0a4ee4f348a8d2c130592f9331fd5220ed246d65 /make-dist
parent23df210e749c82a05864bc86dcfa4923265d6f74 (diff)
downloademacs-87b40b2fcf0c33627efd1a5a57f0c51cd243f7e0.tar.gz
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.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist18
1 files changed, 16 insertions, 2 deletions
diff --git a/make-dist b/make-dist
index 303ed3494e0..e61f6c1cda3 100755
--- a/make-dist
+++ b/make-dist
@@ -76,6 +76,16 @@ else
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 @@ fi
(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 @@ echo "Making links to top-level files."
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 @@ fi
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