(make-auto-save-file-name): Replace occurrences of
[bpt/emacs.git] / make-dist
CommitLineData
f7dbcf3c 1#!/bin/sh
76fb0a58
JB
2
3#### make-dist: create an Emacs distribution tar file from the current
1d650ff1 4#### source tree. This basically creates a duplicate directory
76fb0a58
JB
5#### structure, and then hard links into it only those files that should
6#### be distributed. This means that if you add a file with an odd name,
7#### you should make sure that this script will include it.
f7dbcf3c 8
4c9c1174
KH
9# Copyright (C) 1995 Free Software Foundation, Inc.
10#
11# This file is part of GNU Emacs.
12#
13# GNU Emacs is free software; you can redistribute it and/or modify
14# it under the terms of the GNU General Public License as published by
15# the Free Software Foundation; either version 2, or (at your option)
16# any later version.
17#
18# GNU Emacs is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21# GNU General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
1fb87c77
KH
24# along with GNU Emacs; see the file COPYING. If not, write to the
25# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
26# Boston, MA 02111-1307, USA.
4c9c1174 27
f7dbcf3c
JB
28progname="$0"
29
76fb0a58
JB
30### Exit if a command fails.
31### set -e
f7dbcf3c 32
76fb0a58
JB
33### Print out each line we read, for debugging's sake.
34### set -v
f7dbcf3c 35
c75cfabd 36update=yes
f22edcea
RS
37clean_up=no
38make_tar=no
1260d6ba 39newer=""
f7dbcf3c
JB
40
41while [ $# -gt 0 ]; do
42 case "$1" in
f22edcea
RS
43 ## This option tells make-dist to delete the staging directory
44 ## when done. It is useless to use this unless you make a tar file.
45 "--clean-up" )
46 clean_up=yes
4746118a 47 ;;
f22edcea
RS
48 ## This option tells make-dist to make a tar file.
49 "--tar" )
50 make_tar=yes
f7dbcf3c 51 ;;
c75cfabd
RS
52 ## This option tells make-dist not to recompile or do analogous things.
53 "--no-update" )
54 update=no
55 ;;
76fb0a58 56 ## This option tells make-dist to make the distribution normally, then
7b9cd64c
ER
57 ## remove all files older than the given timestamp file. This is useful
58 ## for creating incremental or patch distributions.
1260d6ba 59 "--newer")
ef15f270
JB
60 newer="$2"
61 new_extension=".new"
1260d6ba
ER
62 shift
63 ;;
922ac4c5
JB
64 ## This option tells make-dist to use `compress' instead of gzip.
65 ## Normally, make-dist uses gzip whenever it is present.
66 "--compress")
67 default_gzip="compress"
68 ;;
f7dbcf3c
JB
69 * )
70 echo "${progname}: Unrecognized argument: $1" >&2
71 exit 1
72 ;;
73 esac
74 shift
75done
76
76fb0a58 77### Make sure we're running in the right place.
f7dbcf3c 78if [ ! -d src -o ! -f src/lisp.h -o ! -d lisp -o ! -f lisp/version.el ]; then
1260d6ba
ER
79 echo "${progname}: Can't find \`src/lisp.h' and \`lisp/version.el'." >&2
80 echo "${progname} must be run in the top directory of the Emacs" >&2
0d122844 81 echo "distribution tree. cd to that directory and try again." >&2
f7dbcf3c
JB
82 exit 1
83fi
84
c75cfabd
RS
85### Find where to run Emacs.
86if [ $update = yes ];
87then
88 if [ -f src/emacs ];
89 then
90 EMACS=`pwd`/src/emacs
91 else
92 if [ x$EMACS = x ];
93 then
94 echo You must specify the EMACS environment variable 2>&1
95 exit 1
96 fi
97 fi
98fi
99
76fb0a58 100### Find out which version of Emacs this is.
0e0186f1 101shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \
47d105b0 102 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
0e0186f1
RS
103version=`grep 'defconst[ ]*emacs-version' lisp/version.el \
104 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
f7dbcf3c 105if [ ! "${version}" ]; then
21764d60 106 echo "${progname}: can't find current Emacs version in \`./lisp/version.el'" >&2
f7dbcf3c
JB
107 exit 1
108fi
109
21764d60 110echo Version numbers are $version and $shortversion
47d105b0 111
c75cfabd
RS
112if [ $update = yes ];
113then
114 if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then
115 true
116 else
117 echo "You must update the version number in \`./man/emacs.texi'"
118 sleep 5
119 fi
f753e9aa
JB
120fi
121
bb160193
RS
122### Make sure we don't already have a directory emacs-${version}.
123
124emacsname="emacs-${version}${new_extension}"
125
126if [ -d ${emacsname} ]
127then
128 echo Directory "${emacsname}" already exists >&2
129 exit 1
130fi
131
76fb0a58 132### Make sure the subdirectory is available.
1260d6ba 133tempparent="make-dist.tmp.$$"
f7dbcf3c 134if [ -d ${tempparent} ]; then
1260d6ba
ER
135 echo "${progname}: staging directory \`${tempparent}' already exists.
136Perhaps a previous invocation of \`${progname}' failed to clean up after
137itself. Check that directories whose names are of the form
138\`make-dist.tmp.NNNNN' don't contain any important information, remove
139them, and try again." >&2
f7dbcf3c
JB
140 exit 1
141fi
142
9f7602fd
JB
143### Check for .elc files with no corresponding .el file.
144ls -1 lisp/*.el | sed 's/\.el$/.elc/' > /tmp/el
145ls -1 lisp/*.elc > /tmp/elc
254e10d8
JB
146bogosities="`comm -13 /tmp/el /tmp/elc`"
147if [ "${bogosities}" != "" ]; then
148 echo "The following .elc files have no corresponding .el files:"
149 echo "${bogosities}"
150fi
8f731fcc 151rm -f /tmp/el /tmp/elc
9f7602fd 152
f5674423 153### Check for .el files that would overflow the 14-char limit if compiled.
544174d9 154long=`find lisp -name '[a-zA-Z0-9]??????????*.el' -print`
f5674423
KH
155if [ "$long" != "" ]; then
156 echo "The following .el file names are too long:"
157 echo "$long"
158fi
159
b4e84d5d
JB
160### Make sure configure is newer than configure.in.
161if [ "x`ls -t configure configure.in | head -1`" != "xconfigure" ]; then
21764d60
KH
162 echo "\`./configure.in' is newer than \`./configure'" >&2
163 echo "Running autoconf" >&2
28335560 164 autoconf || { x=$?; echo Autoconf FAILED! >&2; exit $x; }
b4e84d5d
JB
165fi
166
c75cfabd
RS
167if [ $update = yes ];
168then
169 echo "Updating Info files"
980ab937 170
c75cfabd 171 (cd man; make info)
980ab937 172
c75cfabd 173 echo "Updating finder-inf.el"
0588a761 174
c75cfabd 175 (cd lisp; $EMACS -batch -l finder -f finder-compile-keywords-make-dist)
21764d60 176
c75cfabd 177 echo "Recompiling Lisp files"
21764d60 178
c75cfabd 179 $EMACS -batch -f batch-byte-recompile-directory lisp
21764d60 180
c75cfabd 181 echo "Updating autoloads"
21764d60 182
c75cfabd
RS
183 $EMACS -batch -f batch-update-autoloads lisp
184fi
0588a761 185
f07eebe0
KH
186echo "Making lisp/MANIFEST"
187
ce200cf3 188(cd lisp; head -1 [!=]*.el | grep '^;' | sed -e 's/;;; //' > MANIFEST)
f07eebe0 189
1260d6ba 190echo "Creating staging directory: \`${tempparent}'"
bb160193 191
f7dbcf3c 192mkdir ${tempparent}
f7dbcf3c
JB
193tempdir="${tempparent}/${emacsname}"
194
76fb0a58
JB
195### This trap ensures that the staging directory will be cleaned up even
196### when the script is interrupted in mid-career.
00c00348 197if [ "${clean_up}" = yes ]; then
21764d60 198 trap "echo 'Interrupted...cleaning up the staging directory'; rm -rf ${tempparent}; exit 1" 1 2 15
00c00348
ER
199fi
200
1260d6ba 201echo "Creating top directory: \`${tempdir}'"
f7dbcf3c
JB
202mkdir ${tempdir}
203
76fb0a58
JB
204### We copy in the top-level files before creating the subdirectories in
205### hopes that this will make the top-level files appear first in the
206### tar file; this means that people can start reading the INSTALL and
207### README while the rest of the tar file is still unpacking. Whoopee.
21764d60 208echo "Making links to top-level files"
525336b7 209ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README BUGS move-if-change ${tempdir}
ac4eff2d 210ln ChangeLog Makefile.in configure configure.in ${tempdir}
6f8b09f3 211ln config.bat make-dist update-subdirs vpath.sed ${tempdir}
bb160193 212### Copy these files; they're cross-filesystem symlinks.
a4888c88 213cp mkinstalldirs ${tempdir}
76fb0a58 214cp config.sub ${tempdir}
2ed56345 215cp config.guess ${tempdir}
bb160193 216cp install.sh ${tempdir}
f7dbcf3c 217
21764d60 218echo "Updating version number in README"
f753e9aa
JB
219(cd ${tempdir}
220 awk \
221 '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 }
222 $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \
223 version=${version} README > tmp.README
224 mv tmp.README README)
225
226
21764d60 227echo "Creating subdirectories"
82a82d48 228for subdir in lisp lisp/term site-lisp \
c660c0a7 229 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \
e827bc37 230 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet \
8e583b5d 231 etc etc/e lock cpp info man msdos vms; do
f7dbcf3c
JB
232 mkdir ${tempdir}/${subdir}
233done
234
21764d60 235echo "Making links to \`lisp'"
7b9cd64c 236### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el.
f7dbcf3c
JB
237(cd lisp
238 ln [a-zA-Z]*.el ../${tempdir}/lisp
239 ln [a-zA-Z]*.elc ../${tempdir}/lisp
8d2197ac 240 ln [a-zA-Z]*.dat ../${tempdir}/lisp
76fb0a58
JB
241 ## simula.el doesn't keep abbreviations in simula.defns any more.
242 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp
3f7b30bf 243 ln ChangeLog Makefile makefile.nt ChangeLog.? README ../${tempdir}/lisp
f7dbcf3c 244 cd ../${tempdir}/lisp
7b9cd64c 245 rm -f TAGS =*
db1e13f0 246 rm -f subdirs.el
f7dbcf3c 247 rm -f site-init site-init.el site-init.elc
ef15f270 248 rm -f site-load site-load.el site-load.elc
da0e2548 249 rm -f site-start site-start.el site-start.elc
ef15f270 250 rm -f default default.el default.elc)
f7dbcf3c 251
21764d60 252#echo "Making links to \`lisp/calc-2.02'"
56c31c87
RS
253#### Don't distribute =*.el files, TAGS or backups.
254#(cd lisp/calc-2.02
255# ln [a-zA-Z]*.el ../../${tempdir}/lisp/calc-2.02
256# ln [a-zA-Z]*.elc ../../${tempdir}/lisp/calc-2.02
257# ln calc.info* calc.texinfo calc-refcard.* ../../${tempdir}/lisp/calc-2.02
258# ln INSTALL Makefile README README.prev ../../${tempdir}/lisp/calc-2.02
259# cd ../../${tempdir}/lisp/calc-2.02
260# rm -f *~ TAGS)
fda4e8f6 261
21764d60 262echo "Making links to \`lisp/term'"
7b9cd64c 263### Don't distribute =*.el files or TAGS.
f7dbcf3c
JB
264(cd lisp/term
265 ln [a-zA-Z]*.el ../../${tempdir}/lisp/term
266 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/term
3e1fc5a7 267 ln README ../../${tempdir}/lisp/term
7b9cd64c 268 rm -f =* TAGS)
f7dbcf3c 269
21764d60 270echo "Making links to \`src'"
76fb0a58 271### Don't distribute =*.[ch] files, or the configured versions of
c3f1e1a9 272### config.in, paths.in, or Makefile.in, or TAGS.
f7dbcf3c 273(cd src
c75cfabd 274 echo " (It is ok if ln fails in some cases.)"
f7dbcf3c
JB
275 ln [a-zA-Z]*.c ../${tempdir}/src
276 ln [a-zA-Z]*.h ../${tempdir}/src
277 ln [a-zA-Z]*.s ../${tempdir}/src
c75cfabd
RS
278 ln [a-zA-Z]*.in ../${tempdir}/src
279 ln [a-zA-Z]*.opt ../${tempdir}/src
280 ## If we ended up with a symlink, or if we did not get anything
281 ## due to a cross-device symlink, copy the file.
282 for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in [a-zA-Z]*.opt; do
283 if test -f ../${tempdir}/src/$file; then
284 # test -f appears to succeed for a symlink
285 if test -L ../${tempdir}/src/$file; then
286 rm ../${tempdir}/src/$file
287 cp $file ../${tempdir}/src
288 chmod a-w ../${tempdir}/src/$file
289 fi
290 else
291 rm ../${tempdir}/src/$file
292 cp $file ../${tempdir}/src
293 chmod a-w ../${tempdir}/src/$file
294 fi
295 done
296 ln README ChangeLog ChangeLog.*[0-9] ../${tempdir}/src
297 ln makefile.nt vms-pp.trans ../${tempdir}/src
990ee059 298 ln .gdbinit .dbxinit ../${tempdir}/src
f7dbcf3c 299 cd ../${tempdir}/src
a6903f09 300 rm -f config.h paths.h Makefile Makefile.c
7b9cd64c 301 rm -f =* TAGS)
f7dbcf3c 302
21764d60 303echo "Making links to \`src/bitmaps'"
690eca32
JB
304(cd src/bitmaps
305 ln README *.xbm ../../${tempdir}/src/bitmaps)
306
21764d60 307echo "Making links to \`src/m'"
f7dbcf3c 308(cd src/m
facbb78e
RS
309 # We call files for miscellaneous input (to linker etc) .inp.
310 ln README [a-zA-Z0-9]*.h *.inp ../../${tempdir}/src/m)
f7dbcf3c 311
21764d60 312echo "Making links to \`src/s'"
f7dbcf3c 313(cd src/s
77427171 314 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s)
f7dbcf3c 315
21764d60 316echo "Making links to \`lib-src'"
f7dbcf3c 317(cd lib-src
375f1bd7 318 ln [a-zA-Z]*.[chy] ../${tempdir}/lib-src
c3f1e1a9 319 ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src
391b3748 320 ln emacs.csh rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src
c75cfabd
RS
321 ## If we ended up with a symlink, or if we did not get anything
322 ## due to a cross-device symlink, copy the file.
323 for file in [a-zA-Z]*.[chy]; do
324 if test -f ../${tempdir}/lib-src/$file; then
325 # test -f appears to succeed for a symlink
326 if test -L ../${tempdir}/lib-src/$file; then
327 rm ../${tempdir}/lib-src/$file
328 cp $file ../${tempdir}/lib-src
329 chmod a-w ../${tempdir}/lib-src/$file
330 fi
331 else
332 rm ../${tempdir}/lib-src/$file
333 cp $file ../${tempdir}/lib-src
334 chmod a-w ../${tempdir}/lib-src/$file
335 fi
336 done
1260d6ba 337 cd ../${tempdir}/lib-src
c75cfabd 338 rm -f Makefile.c
7b9cd64c 339 rm -f =* TAGS)
f7dbcf3c 340
21764d60 341echo "Making links to \`nt'"
391b3748 342(cd nt
e827bc37 343 ln emacs.ico emacs.rc config.nt [a-z]*.in [a-z]*.c ../${tempdir}/nt
b47cc08a 344 ln [a-z]*.bat [a-z]*.h makefile.def makefile.nt ../${tempdir}/nt
3bb3cfe7 345 ln TODO ChangeLog INSTALL README ../${tempdir}/nt)
391b3748 346
21764d60 347echo "Making links to \`nt/inc'"
391b3748 348(cd nt/inc
77427171 349 ln [a-z]*.h ../../${tempdir}/nt/inc)
391b3748 350
21764d60 351echo "Making links to \`nt/inc/sys'"
391b3748 352(cd nt/inc/sys
77427171 353 ln [a-z]*.h ../../../${tempdir}/nt/inc/sys)
391b3748 354
e827bc37
RS
355echo "Making links to \`nt/inc/arpa'"
356(cd nt/inc/arpa
357 ln [a-z]*.h ../../../${tempdir}/nt/inc/arpa)
358
359echo "Making links to \`nt/inc/netinet'"
360(cd nt/inc/netinet
361 ln [a-z]*.h ../../../${tempdir}/nt/inc/netinet)
362
21764d60 363echo "Making links to \`msdos'"
52d7b2e5
RS
364(cd msdos
365 ln ChangeLog emacs.ico emacs.pif ../${tempdir}/msdos
7fd85d56 366 ln is_exec.c sigaction.c mainmake mainmake.v2 sed*.inp ../${tempdir}/msdos
52d7b2e5
RS
367 cd ../${tempdir}/msdos
368 rm -f =*)
369
21764d60 370echo "Making links to \`oldXMenu'"
f7dbcf3c 371(cd oldXMenu
8bdbf9ed 372 ln *.c *.h *.in ../${tempdir}/oldXMenu
df1ec566 373 ln README Imakefile ChangeLog ../${tempdir}/oldXMenu
f395c83a 374 ln compile.com descrip.mms ../${tempdir}/oldXMenu)
f7dbcf3c 375
21764d60 376echo "Making links to \`lwlib'"
c660c0a7
RS
377(cd lwlib
378 ln *.c *.h *.in ../${tempdir}/lwlib
72e7e784
KH
379 ln README Imakefile ChangeLog ../${tempdir}/lwlib
380 cd ../${tempdir}/lwlib
381 rm -f lwlib-Xol*)
c660c0a7 382
21764d60 383echo "Making links to \`etc'"
f395c83a
JB
384### Don't distribute = files, TAGS, DOC files, backups, autosaves, or
385### tex litter.
f7dbcf3c 386(cd etc
375f1bd7 387 ln `ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'` ../${tempdir}/etc
f7dbcf3c 388 cd ../${tempdir}/etc
23a58692 389 rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core
f395c83a 390 rm -f TAGS)
f7dbcf3c 391
21764d60 392echo "Making links to \`etc/e'"
f08ad882 393(cd etc/e
375f1bd7 394 ln `ls -d * | grep -v 'RCS'` ../../${tempdir}/etc/e
a6903f09 395 cd ../../${tempdir}/etc/e
375f1bd7 396 rm -f *~ \#*\# *,v =* core)
f08ad882 397
21764d60 398echo "Making links to \`cpp'"
fda4e8f6
JB
399(cd cpp
400 ln cccp.c cexp.y Makefile README ../${tempdir}/cpp)
401
21764d60 402echo "Making links to \`info'"
66afa119
RS
403# Don't distribute backups or autosaves.
404(cd info
405 ln [a-zA-Z]* ../${tempdir}/info
406 cd ../${tempdir}/info
407 # Avoid an error when expanding the wildcards later.
408 ln emacs dummy~ ; ln emacs \#dummy\#
409 rm -f *~ \#*\# core)
fda4e8f6 410
21764d60 411echo "Making links to \`man'"
fda4e8f6 412(cd man
298c8970 413 ln *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man
5e808bc0 414 test -f README && ln README ../${tempdir}/man
f08ad882 415 test -f Makefile.in && ln Makefile.in ../${tempdir}/man
56c31c87 416 ln ChangeLog split-man ../${tempdir}/man
375f1bd7 417 cp texinfo.tex ../${tempdir}/man
4f8cc93a 418 cd ../${tempdir}/man
56c31c87
RS
419 rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail
420 rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux)
f7dbcf3c 421
21764d60 422echo "Making links to \`vms'"
40eef465
JB
423(cd vms
424 ln [0-9a-zA-Z]* ../${tempdir}/vms
425 cd ../${tempdir}/vms
426 rm -f *~)
427
c87b230f
JB
428### It would be nice if they could all be symlinks to etc's copy, but
429### you're not supposed to have any symlinks in distribution tar files.
21764d60 430echo "Making sure copying notices are all copies of \`etc/COPYING'"
1260d6ba
ER
431rm -f ${tempdir}/etc/COPYING
432cp etc/COPYING ${tempdir}/etc/COPYING
8e583b5d 433for subdir in lisp src lib-src info msdos; do
f7dbcf3c
JB
434 if [ -f ${tempdir}/${subdir}/COPYING ]; then
435 rm ${tempdir}/${subdir}/COPYING
436 fi
96858c42 437 cp etc/COPYING ${tempdir}/${subdir}
f7dbcf3c
JB
438done
439
5b8def65
JB
440#### Make sure that there aren't any hard links between files in the
441#### distribution; people with afs can't deal with that. Okay,
442#### actually we just re-copy anything with a link count greater
375f1bd7
KH
443#### than two. (Yes, strictly greater than 2 is correct; since we
444#### created these files by linking them in from the original tree,
445#### they'll have exactly two links normally.)
bb7e0f81 446####
908ff139 447#### Commented out since it's not strictly necessary; it should suffice
bb7e0f81 448#### to just break the link on alloca.c.
9b23a6c7
RS
449#echo "Breaking intra-tree links."
450#find ${tempdir} ! -type d -links +2 \
451# -exec cp -p {} $$ \; -exec rm -f {} \; -exec mv $$ {} \;
bb7e0f81
KH
452rm -f $tempdir/lib-src/alloca.c
453cp $tempdir/src/alloca.c $tempdir/lib-src/alloca.c
5b8def65 454
1260d6ba 455if [ "${newer}" ]; then
21764d60 456 echo "Removing files older than $newer"
76fb0a58
JB
457 ## We remove .elc files unconditionally, on the theory that anyone picking
458 ## up an incremental distribution already has a running Emacs to byte-compile
459 ## them with.
1260d6ba
ER
460 find ${tempparent} \( -name '*.elc' -o ! -newer ${newer} \) -exec rm -f {} \;
461fi
462
4746118a 463if [ "${make_tar}" = yes ]; then
922ac4c5 464 if [ "${default_gzip}" = "" ]; then
21764d60 465 echo "Looking for gzip"
922ac4c5
JB
466 temppath=`echo $PATH | sed 's/^:/.:/
467 s/::/:.:/g
468 s/:$/:./
469 s/:/ /g'`
470 default_gzip=`(
471 for dir in ${temppath}; do
472 if [ -f ${dir}/gzip ]; then echo 'gzip --best'; exit 0; fi
473 done
474 echo compress
475 )`
476 fi
f395c83a
JB
477 case "${default_gzip}" in
478 compress* ) gzip_extension=.Z ;;
0dc610dd 479 * ) gzip_extension=.gz ;;
f395c83a 480 esac
21764d60 481 echo "Creating tar file"
f395c83a
JB
482 (cd ${tempparent} ; tar cvf - ${emacsname} ) \
483 | ${default_gzip} \
484 > ${emacsname}.tar${gzip_extension}
4746118a 485fi
f7dbcf3c 486
4746118a 487if [ "${clean_up}" = yes ]; then
21764d60 488 echo "Cleaning up the staging directory"
f395c83a 489 rm -rf ${tempparent}
bb160193
RS
490else
491 (cd ${tempparent}; mv ${emacsname} ..)
492 rm -rf ${tempparent}
f7dbcf3c 493fi
00c00348 494
76fb0a58 495### make-dist ends here