declare smobs in alloc.c
[bpt/emacs.git] / make-dist
CommitLineData
067d23c9
KY
1#!/bin/sh
2### make-dist: create an Emacs distribution tar file from current srcdir
3
7ee4b70c 4## Copyright (C) 1995, 1997-1998, 2000-2014 Free Software Foundation, Inc.
067d23c9
KY
5
6## This file is part of GNU Emacs.
7
8## GNU Emacs is free software: you can redistribute it and/or modify
9## it under the terms of the GNU General Public License as published by
10## the Free Software Foundation, either version 3 of the License, or
11## (at your option) any later version.
12
13## GNU Emacs is distributed in the hope that it will be useful,
14## but WITHOUT ANY WARRANTY; without even the implied warranty of
15## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16## GNU General Public License for more details.
17
18## You should have received a copy of the GNU General Public License
19## along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20
21### Commentary:
22
23## This basically creates a duplicate directory structure, and then
24## hard links into it only those files that should be distributed.
25## This means that if you add a file with an odd name, you should make
26## sure that this script will include it.
27
28### Code:
29
30progname="$0"
31
32### Exit if a command fails.
33#set -e
34
35### Print out each line we read, for debugging's sake.
36#set -v
37
38LANGUAGE=C
39LC_ALL=C
40LC_MESSAGES=
41LANG=
42export LANGUAGE LC_ALL LC_MESSAGES LANG
43
0922c475
PE
44## Remove unnecessary restrictions on file access.
45umask 022
067d23c9
KY
46
47update=yes
48check=yes
49clean_up=no
50make_tar=no
51default_gzip=gzip
52newer=""
ef75383c 53with_tests=no
067d23c9
KY
54
55while [ $# -gt 0 ]; do
56 case "$1" in
57 ## This option tells make-dist to delete the staging directory
58 ## when done. It is useless to use this unless you make a tar file.
59 "--clean-up" )
60 clean_up=yes
61 ;;
62 ## This option tells make-dist to make a tar file.
63 "--tar" )
64 make_tar=yes
65 ;;
66 ## This option tells make-dist not to recompile or do analogous things.
67 "--no-update" )
68 update=no
69 ;;
70 ## This option says don't check for bad file names, etc.
71 "--no-check" )
72 check=no
73 ;;
74 ## This option tells make-dist to make the distribution normally, then
75 ## remove all files older than the given timestamp file. This is useful
76 ## for creating incremental or patch distributions.
77 "--newer")
78 newer="$2"
79 new_extension=".new"
80 shift
81 ;;
82 ## This option tells make-dist to use `bzip2' instead of gzip.
83 "--bzip2")
84 default_gzip="bzip2"
85 ;;
39aff4a7
GM
86 ## Same with xz.
87 "--xz")
88 default_gzip="xz"
89 ;;
90 "--no-compress")
91 default_gzip="cat"
92 ;;
067d23c9
KY
93
94 "--snapshot")
95 clean_up=yes
96 make_tar=yes
97 update=no
98 check=no
99 ;;
100
ef75383c
GM
101 ## Include the test/ directory.
102 ## This option is mainly for the hydra build server.
103 "--tests")
104 with_tests=yes
105 ;;
106
067d23c9
KY
107 "--help")
108 echo "Usage: ${progname} [options]"
109 echo ""
110 echo " --bzip2 use bzip2 instead of gzip"
111 echo " --clean-up delete staging directories when done"
39aff4a7
GM
112 echo " --xz use xz instead of gzip"
113 echo " --no-compress don't compress"
067d23c9
KY
114 echo " --newer=TIME don't include files older than TIME"
115 echo " --no-check don't check for bad file names etc."
116 echo " --no-update don't recompile or do analogous things"
117 echo " --snapshot same as --clean-up --no-update --tar --no-check"
118 echo " --tar make a tar file"
ef75383c 119 echo " --tests include the test/ directory"
067d23c9
KY
120 echo ""
121 exit 0
122 ;;
123
124 * )
125 echo "${progname}: Unrecognized argument: $1" >&2
126 exit 1
127 ;;
128 esac
129 shift
130done
131
132### Make sure we're running in the right place.
133if [ ! -d src -o ! -f src/lisp.h -o ! -d lisp -o ! -f lisp/subr.el ]; then
134 echo "${progname}: Can't find \`src/lisp.h' and \`lisp/subr.el'." >&2
135 echo "${progname} must be run in the top directory of the Emacs" >&2
136 echo "distribution tree. cd to that directory and try again." >&2
137 exit 1
138fi
139
140### Find where to run Emacs.
141### (Accept only absolute file names.)
142if [ $update = yes ];
143then
144 if [ -f src/emacs ];
145 then
146 EMACS=`pwd`/src/emacs
147 else
148 case $EMACS in
149 /*) ;;
150 *)
151 if [ ! -f "$EMACS" ]; then
152 echo "$0: You must set the EMACS environment variable " \
153 "to an absolute file name." 2>&1
154 exit 1
155 fi;;
156 esac
157 fi
158fi
159
160### Find out which version of Emacs this is.
16fab143 161version=`
3a9e7a49 162 sed -n 's/^AC_INIT(GNU Emacs,[ ]*\([^ ,)]*\).*/\1/p' <configure.ac
16fab143 163` || version=
067d23c9
KY
164if [ ! "${version}" ]; then
165 echo "${progname}: can't find current Emacs version in \`./src/emacs.c'" >&2
166 exit 1
167fi
168
169echo Version number is $version
170
171if [ $update = yes ]; then
172 if ! grep -q "@set EMACSVER *${version}" doc/emacs/emacsver.texi || \
173 ! grep -q "tree holds version *${version}" README; then
174 echo "WARNING: README and/or emacsver.texi have the wrong version number"
175 echo "Consider running M-x set-version from admin/admin.el"
176 sleep 5
177 fi
178fi
179
180### Make sure we don't already have a directory emacs-${version}.
181
182emacsname="emacs-${version}${new_extension}"
183
184if [ -d ${emacsname} ]
185then
186 echo Directory "${emacsname}" already exists >&2
187 exit 1
188fi
189
190### Make sure the subdirectory is available.
191tempparent="make-dist.tmp.$$"
192if [ -d ${tempparent} ]; then
193 echo "${progname}: staging directory \`${tempparent}' already exists.
194Perhaps a previous invocation of \`${progname}' failed to clean up after
195itself. Check that directories whose names are of the form
196\`make-dist.tmp.NNNNN' don't contain any important information, remove
197them, and try again." >&2
198 exit 1
199fi
200
201if [ $check = yes ]; then
202 ls -1 lisp/[a-zA-Z]*.el lisp/[a-z]*/[a-zA-Z0-9]*.el \
203 lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \
cb6c95a3 204 lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el > /tmp/el
067d23c9
KY
205
206 ls -1 lisp/[a-zA-Z]*.elc lisp/[a-z]*/[a-zA-Z0-9]*.elc \
207 lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.elc \
cb6c95a3 208 lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.elc > /tmp/elc
067d23c9
KY
209
210 ## Check for .elc files with no corresponding .el file.
211 sed 's/\.el$/.elc/' /tmp/el > /tmp/elelc
212
213 bogosities="`comm -13 /tmp/elelc /tmp/elc`"
214 if [ x"${bogosities}" != x"" ]; then
215 echo "The following .elc files have no corresponding .el files:"
216 echo "${bogosities}"
217 fi
218
219 ### Check for .el files with no corresponding .elc file.
220 sed 's/\.elc$/.el/' /tmp/elc > /tmp/elcel
221 losers="`comm -23 /tmp/el /tmp/elcel`"
222
223 rm -f /tmp/el /tmp/elc /tmp/elcel /tmp/elelc
224
225 bogosities=
226 for file in $losers; do
227 grep -q "no-byte-compile: t" $file && continue
228 case $file in
229 site-init.el | site-load.el | site-start.el | default.el) continue ;;
230 esac
231
232 bogosities="$file $bogosities"
233
234 done
235 if [ x"${bogosities}" != x"" ]; then
236 echo "The following .el files have no corresponding .elc files:"
237 echo "${bogosities}"
238 fi
239fi
240
241if [ $update = yes ]; then
242
c4444d16 243 ## Make sure configure is newer than configure.ac, etc.
a02d99e7
GM
244 ## It is better to let autoreconf do what is needed than
245 ## for us to try and duplicate all its checks.
246 echo "Running autoreconf"
247 autoreconf -i -I m4 || { x=$?; echo Autoreconf FAILED! >&2; exit $x; }
067d23c9 248
c4444d16 249 ## Make sure src/stamp-h.in is newer than configure.ac.
a02d99e7
GM
250 rm -f src/stamp-h.in
251 echo timestamp > src/stamp-h.in
067d23c9
KY
252
253 echo "Updating Info files"
62bd73fa 254 make info
067d23c9
KY
255
256 echo "Updating finder, custom and autoload data"
a02d99e7 257 (cd lisp && make updates EMACS="$EMACS")
067d23c9 258
a02d99e7
GM
259 echo "Updating leim-list.el"
260 (cd leim && make leim-list.el EMACS="$EMACS")
067d23c9
KY
261
262 echo "Recompiling Lisp files"
cb6c95a3 263 $EMACS -batch -f batch-byte-recompile-directory lisp
067d23c9
KY
264fi # $update = yes
265
266echo "Creating staging directory: \`${tempparent}'"
267
268mkdir ${tempparent}
269tempdir="${tempparent}/${emacsname}"
270
271### This trap ensures that the staging directory will be cleaned up even
272### when the script is interrupted in mid-career.
273if [ "${clean_up}" = yes ]; then
274 trap "echo 'Cleaning up the staging directory'; rm -rf ${tempparent}" EXIT
275fi
276
277echo "Creating top directory: \`${tempdir}'"
278mkdir ${tempdir}
279
280### We copy in the top-level files before creating the subdirectories in
281### hopes that this will make the top-level files appear first in the
282### tar file; this means that people can start reading the INSTALL and
283### README while the rest of the tar file is still unpacking. Whoopee.
284echo "Making links to top-level files"
24e0f6b1 285ln INSTALL README BUGS ${tempdir}
b8b0239f 286ln ChangeLog Makefile.in autogen.sh configure configure.ac ${tempdir}
ff0c3cfb 287ln config.bat make-dist .dir-locals.el ${tempdir}
9a514d4a 288ln aclocal.m4 ${tempdir}
067d23c9
KY
289
290echo "Creating subdirectories"
291for subdir in site-lisp \
cb6c95a3 292 leim leim/CXTERM-DIC leim/MISC-DIC leim/SKK-DIC \
24e0f6b1 293 build-aux build-aux/snippet \
d66b744d 294 src src/bitmaps lib lib-src oldXMenu lwlib \
067d23c9 295 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \
ef75383c 296 `find etc lisp admin test -type d` \
067d23c9 297 doc doc/emacs doc/misc doc/man doc/lispref doc/lispintro \
07f3add9 298 info m4 msdos \
83da1b55
GM
299 nextstep nextstep/templates \
300 nextstep/Cocoa nextstep/Cocoa/Emacs.base \
067d23c9
KY
301 nextstep/Cocoa/Emacs.base/Contents \
302 nextstep/Cocoa/Emacs.base/Contents/Resources \
067d23c9
KY
303 nextstep/GNUstep \
304 nextstep/GNUstep/Emacs.base \
305 nextstep/GNUstep/Emacs.base/Resources
306do
ef75383c
GM
307
308 if [ "$with_tests" != "yes" ]; then
309 case $subdir in
310 test*) continue ;;
311 esac
312 fi
313
067d23c9
KY
314 ## site-lisp for in-place installs (?).
315 [ "$subdir" = "site-lisp" ] || [ -d "$subdir" ] || \
316 echo "WARNING: $subdir not found, making anyway"
317 echo " ${tempdir}/${subdir}"
318 mkdir ${tempdir}/${subdir}
319done
320
321echo "Making links to \`lisp' and its subdirectories"
322files=`find lisp \( -name '*.el' -o -name '*.elc' -o -name 'ChangeLog*' \
0eb61895 323 -o -name 'README' \)`
067d23c9
KY
324
325### Don't distribute site-init.el, site-load.el, or default.el.
df0d3f79 326for file in lisp/Makefile.in lisp/makefile.w32-in $files; do
067d23c9
KY
327 case $file in
328 */site-init*|*/site-load*|*/default*) continue ;;
329 esac
330 ln $file $tempdir/$file
331done
332
333echo "Making links to \`leim' and its subdirectories"
334(cd leim
df0d3f79 335 ln makefile.w32-in ../${tempdir}/leim
067d23c9
KY
336 ln ChangeLog README ../${tempdir}/leim
337 ln CXTERM-DIC/README CXTERM-DIC/*.tit ../${tempdir}/leim/CXTERM-DIC
338 ln SKK-DIC/README SKK-DIC/SKK-JISYO.L ../${tempdir}/leim/SKK-DIC
339 ln MISC-DIC/README MISC-DIC/*.* ../${tempdir}/leim/MISC-DIC
067d23c9 340 ln Makefile.in ../${tempdir}/leim/Makefile.in
cb6c95a3 341 ln leim-ext.el ../${tempdir}/leim/leim-ext.el)
067d23c9 342
89f01d7d 343## FIXME Can we not just use the "find -type f" method for this one?
24e0f6b1
PE
344echo "Making links to \`build-aux'"
345(cd build-aux
eca4ecba 346 ln compile config.guess config.sub depcomp msys-to-w32 ../${tempdir}/build-aux
9ebada6a
PE
347 ln install-sh missing move-if-change ../${tempdir}/build-aux
348 ln update-copyright update-subdirs ../${tempdir}/build-aux
89f01d7d 349 ln dir_top make-info-dir ../${tempdir}/build-aux)
24e0f6b1
PE
350
351echo "Making links to \`build-aux/snippet'"
352(cd build-aux/snippet
353 ln *.h ../../${tempdir}/build-aux/snippet)
354
067d23c9
KY
355echo "Making links to \`src'"
356### Don't distribute the configured versions of
357### config.in, paths.in, buildobj.h, or Makefile.in.
358(cd src
359 echo " (It is ok if ln fails in some cases.)"
360 ln [a-zA-Z]*.[chm] ../${tempdir}/src
361 ln [a-zA-Z]*.in ../${tempdir}/src
362 ln [a-zA-Z]*.mk ../${tempdir}/src
363 ln README ChangeLog ChangeLog.*[0-9] ../${tempdir}/src
df0d3f79 364 ln makefile.w32-in ../${tempdir}/src
067d23c9
KY
365 ln .gdbinit .dbxinit ../${tempdir}/src
366 cd ../${tempdir}/src
57e96f8e 367 rm -f globals.h config.h epaths.h Makefile buildobj.h)
067d23c9
KY
368
369echo "Making links to \`src/bitmaps'"
370(cd src/bitmaps
371 ln README *.xbm ../../${tempdir}/src/bitmaps)
372
9a514d4a 373echo "Making links to \`lib'"
24e0f6b1 374(snippet_h=`(cd build-aux/snippet && ls *.h)`
9a514d4a
PE
375 cd lib
376 ln [a-zA-Z]*.[ch] ../${tempdir}/lib
df0d3f79 377 ln gnulib.mk Makefile.am Makefile.in makefile.w32-in ../${tempdir}/lib
9a514d4a 378 cd ../${tempdir}/lib
24e0f6b1
PE
379 script='/[*]/d; s/\.in\.h$/.h/'
380 rm -f `(echo "$snippet_h"; ls *.in.h) | sed "$script"`)
9a514d4a 381
067d23c9
KY
382echo "Making links to \`lib-src'"
383(cd lib-src
384 ln [a-zA-Z]*.[ch] ../${tempdir}/lib-src
7cd43111 385 ln ChangeLog Makefile.in README ../${tempdir}/lib-src
df0d3f79 386 ln grep-changelog rcs2log ../${tempdir}/lib-src
9b1ac3be
GM
387 ln makefile.w32-in ../${tempdir}/lib-src
388 ln update-game-score.exe.manifest ../${tempdir}/lib-src)
067d23c9
KY
389
390echo "Making links to \`m4'"
391(cd m4
392 ln *.m4 ../${tempdir}/m4)
393
067d23c9
KY
394echo "Making links to \`nt'"
395(cd nt
50a60e02 396 ln emacs-x86.manifest emacs-x64.manifest emacs.rc ../${tempdir}/nt
df0d3f79 397 ln config.nt emacsclient.rc emacs-src.tags ../${tempdir}/nt
50a60e02 398 ln nmake.defs gmake.defs subdirs.el [a-z]*.bat [a-z]*.[ch] ../${tempdir}/nt
bfbe2627 399 ln Makefile.in gnulib.mk ../${tempdir}/nt
f4f38fad 400 ln mingw-cfg.site epaths.nt INSTALL.OLD ../${tempdir}/nt
df0d3f79 401 ln ChangeLog INSTALL README README.W32 makefile.w32-in ../${tempdir}/nt)
067d23c9
KY
402
403echo "Making links to \`nt/inc' and its subdirectories"
404for f in `find nt/inc -type f -name '[a-z]*.h'`; do
405 ln $f $tempdir/$f
406done
407
408echo "Making links to \`nt/icons'"
409(cd nt/icons
410 ln README [a-z]*.ico ../../${tempdir}/nt/icons
411 ln [a-z]*.cur ../../${tempdir}/nt/icons)
412
413echo "Making links to \`msdos'"
414(cd msdos
415 ln ChangeLog INSTALL README emacs.ico emacs.pif ../${tempdir}/msdos
0bd3cb7b 416 ln depfiles.bat inttypes.h ../${tempdir}/msdos
067d23c9
KY
417 ln is_exec.c sigaction.c mainmake.v2 sed*.inp ../${tempdir}/msdos)
418
419echo "Making links to \`nextstep'"
420(cd nextstep
92f7c6f1 421 ln ChangeLog README INSTALL Makefile.in ../${tempdir}/nextstep)
067d23c9 422
83da1b55
GM
423echo "Making links to \`nextstep/templates'"
424(cd nextstep/templates
51eed9b8 425 ln Emacs.desktop.in Info-gnustep.plist.in Info.plist.in InfoPlist.strings.in ../../${tempdir}/nextstep/templates)
83da1b55 426
067d23c9
KY
427echo "Making links to \`nextstep/Cocoa/Emacs.base/Contents'"
428(cd nextstep/Cocoa/Emacs.base/Contents
83da1b55 429 ln PkgInfo ../../../../${tempdir}/nextstep/Cocoa/Emacs.base/Contents)
067d23c9
KY
430
431echo "Making links to \`nextstep/Cocoa/Emacs.base/Contents/Resources'"
432(cd nextstep/Cocoa/Emacs.base/Contents/Resources
433 ln Credits.html *.icns ../../../../../${tempdir}/nextstep/Cocoa/Emacs.base/Contents/Resources)
434
067d23c9
KY
435echo "Making links to \`nextstep/GNUstep/Emacs.base/Resources'"
436(cd nextstep/GNUstep/Emacs.base/Resources
83da1b55 437 ln README emacs.tiff ../../../../${tempdir}/nextstep/GNUstep/Emacs.base/Resources )
067d23c9
KY
438
439echo "Making links to \`oldXMenu'"
440(cd oldXMenu
93160ec3 441 ln *.[ch] *.in *.mk ../${tempdir}/oldXMenu
067d23c9
KY
442 ln README ChangeLog ../${tempdir}/oldXMenu)
443
444echo "Making links to \`lwlib'"
445(cd lwlib
93160ec3 446 ln *.[ch] *.in *.mk ../${tempdir}/lwlib
067d23c9
KY
447 ln README ChangeLog ../${tempdir}/lwlib)
448
a80a32e8
GM
449## It is important to distribute admin/ because it contains sources
450## for generated lisp/international/uni-*.el files.
6166381e
CY
451echo "Making links to \`admin' and its subdirectories"
452for f in `find admin -type f`; do
1e8589d3 453 case $f in
235b3c79 454 */Makefile) [ -f $f.in ] && continue ;;
1e8589d3 455 esac
6166381e
CY
456 ln $f $tempdir/$f
457done
458
ef75383c
GM
459if [ "$with_tests" = "yes" ]; then
460 echo "Making links to \`test' and its subdirectories"
461 for f in `find test -type f`; do
462 case $f in
7ee4b70c 463 test/automated/*.log) continue ;;
ef75383c
GM
464 test/automated/flymake/warnpred/a.out) continue ;;
465 test/automated/Makefile) continue ;;
466 esac
467 ln $f $tempdir/$f
468 done
469fi
470
067d23c9
KY
471echo "Making links to \`etc' and its subdirectories"
472for f in `find etc -type f`; do
473 case $f in
838db889 474 etc/DOC*|etc/*.pyc) continue ;;
4fa44856
GM
475 ## Arguably we should not exclude *.ps.
476 etc/refcards/*.aux|etc/refcards/*.dvi|etc/refcards/*.log|etc/refcards/*.ps)
477 continue ;;
067d23c9
KY
478 esac
479 ln $f $tempdir/$f
480done
481
482echo "Making links to \`info'"
483ln `find info -type f -print` ${tempdir}/info
484
485echo "Making links to \`doc/emacs'"
486(cd doc/emacs
df0d3f79 487 ln *.texi *.in makefile.w32-in ChangeLog* ../../${tempdir}/doc/emacs)
067d23c9
KY
488
489echo "Making links to \`doc/misc'"
490(cd doc/misc
df0d3f79 491 ln *.texi *.tex *.in makefile.w32-in gnus-news.el ChangeLog* ../../${tempdir}/doc/misc)
067d23c9
KY
492
493echo "Making links to \`doc/lispref'"
494(cd doc/lispref
df0d3f79 495 ln *.texi *.in makefile.w32-in README ChangeLog* ../../${tempdir}/doc/lispref
5122804a
GM
496 ln spellfile ../../${tempdir}/doc/lispref
497 ln two-volume.make two-volume-cross-refs.txt ../../${tempdir}/doc/lispref)
067d23c9
KY
498
499echo "Making links to \`doc/lispintro'"
500(cd doc/lispintro
df0d3f79 501 ln *.texi *.in makefile.w32-in *.eps *.pdf ../../${tempdir}/doc/lispintro
067d23c9
KY
502 ln README ChangeLog* ../../${tempdir}/doc/lispintro
503 cd ../../${tempdir}/doc/lispintro)
504
505echo "Making links to \`doc/man'"
506(cd doc/man
507 ln ChangeLog* *.1 ../../${tempdir}/doc/man
508 cd ../../${tempdir}/doc/man)
509
510### It would be nice if they could all be symlinks to top-level copy, but
511### you're not supposed to have any symlinks in distribution tar files.
512echo "Making sure copying notices are all copies of \`COPYING'"
62bd73fa 513for subdir in . etc leim lib lib-src lisp lwlib msdos nt src; do
067d23c9
KY
514 rm -f ${tempdir}/${subdir}/COPYING
515 cp COPYING ${tempdir}/${subdir}
516done
517
518if [ "${newer}" ]; then
519 echo "Removing files older than $newer"
520 ## We remove .elc files unconditionally, on the theory that anyone picking
521 ## up an incremental distribution already has a running Emacs to byte-compile
522 ## them with.
523 find ${tempparent} \( -name '*.elc' -o ! -newer ${newer} \) -exec rm -f {} \;
524fi
525
526## Don't distribute backups, autosaves, etc.
527echo "Removing unwanted files"
528find ${tempparent} \( -name '*~' -o -name '#*#' -o -name '.*ignore' -o -name '=*' -o -name 'TAGS' \) -exec rm -f {} \;
529
530if [ "${make_tar}" = yes ]; then
531 echo "Looking for $default_gzip"
532 found=0
533 temppath=`echo $PATH | sed -e 's/^:/.:/' -e 's/::/:.:/g' -e 's/:$/:./' \
534 -e 's/:/ /g'`
535 for dir in ${temppath}; do
536 [ -x ${dir}/$default_gzip ] || continue
537 found=1; break
538 done
539 if [ "$found" = "0" ]; then
540 echo "WARNING: \`$default_gzip' not found, will not compress" >&2
541 default_gzip=cat
542 fi
543 case "${default_gzip}" in
544 bzip2) gzip_extension=.bz2 ;;
39aff4a7 545 xz) gzip_extension=.xz ;;
067d23c9
KY
546 gzip) gzip_extension=.gz ; default_gzip="gzip --best";;
547 *) gzip_extension= ;;
548 esac
549 echo "Creating tar file"
550 (cd ${tempparent} ; tar cvf - ${emacsname} ) \
551 | ${default_gzip} \
552 > ${emacsname}.tar${gzip_extension}
553fi
554
555if [ "${clean_up}" != yes ]; then
556 (cd ${tempparent}; mv ${emacsname} ..)
557 rm -rf ${tempparent}
558fi
559
560### make-dist ends here