aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
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
76 sleep 5 76 sleep 5
77fi 77fi
78 78
79### Make sure we don't already have a directory emacs-${version}.
80
81emacsname="emacs-${version}${new_extension}"
82
83if [ -d ${emacsname} ]
84then
85 echo Directory "${emacsname}" already exists >&2
86 exit 1
87fi
88
79### Make sure the subdirectory is available. 89### Make sure the subdirectory is available.
80tempparent="make-dist.tmp.$$" 90tempparent="make-dist.tmp.$$"
81if [ -d ${tempparent} ]; then 91if [ -d ${tempparent} ]; then
@@ -108,8 +118,8 @@ fi
108(cd lib-src; make -f Makefile.in getdate.c YACC="bison -y") 118(cd lib-src; make -f Makefile.in getdate.c YACC="bison -y")
109 119
110echo "Creating staging directory: \`${tempparent}'" 120echo "Creating staging directory: \`${tempparent}'"
121
111mkdir ${tempparent} 122mkdir ${tempparent}
112emacsname="emacs-${version}${new_extension}"
113tempdir="${tempparent}/${emacsname}" 123tempdir="${tempparent}/${emacsname}"
114 124
115### This trap ensures that the staging directory will be cleaned up even 125### This trap ensures that the staging directory will be cleaned up even
@@ -129,9 +139,10 @@ echo "Making links to top-level files."
129ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} 139ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir}
130ln ChangeLog Makefile.in build-ins.in configure configure.in ${tempdir} 140ln ChangeLog Makefile.in build-ins.in configure configure.in ${tempdir}
131ln make-dist vpath.sed ${tempdir} 141ln make-dist vpath.sed ${tempdir}
132### Copy config.guess and config.sub; they're cross-filesystem symlinks. 142### Copy these files; they're cross-filesystem symlinks.
133cp config.sub ${tempdir} 143cp config.sub ${tempdir}
134cp config.guess ${tempdir} 144cp config.guess ${tempdir}
145cp install.sh ${tempdir}
135 146
136echo "Updating version number in README." 147echo "Updating version number in README."
137(cd ${tempdir} 148(cd ${tempdir}
@@ -338,6 +349,9 @@ fi
338if [ "${clean_up}" = yes ]; then 349if [ "${clean_up}" = yes ]; then
339 echo "Cleaning up the staging directory." 350 echo "Cleaning up the staging directory."
340 rm -rf ${tempparent} 351 rm -rf ${tempparent}
352else
353 (cd ${tempparent}; mv ${emacsname} ..)
354 rm -rf ${tempparent}
341fi 355fi
342 356
343### make-dist ends here 357### make-dist ends here