make-dist 17 KB

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