616
|
1 #!/bin/sh
|
1628
|
2
|
|
3 #### make-dist: create an Emacs distribution tar file from the current
|
1688
|
4 #### source tree. This basically creates a duplicate directory
|
1628
|
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.
|
616
|
8
|
74439
|
9 # Copyright (C) 1995, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005,
|
79751
|
10 # 2006, 2007, 2008 Free Software Foundation, Inc.
|
11287
|
11 #
|
|
12 # This file is part of GNU Emacs.
|
|
13 #
|
|
14 # GNU Emacs is free software; you can redistribute it and/or modify
|
|
15 # it under the terms of the GNU General Public License as published by
|
78276
|
16 # the Free Software Foundation; either version 3, or (at your option)
|
11287
|
17 # any later version.
|
|
18 #
|
|
19 # GNU Emacs is distributed in the hope that it will be useful,
|
|
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
22 # GNU General Public License for more details.
|
|
23 #
|
|
24 # You should have received a copy of the GNU General Public License
|
15742
|
25 # along with GNU Emacs; see the file COPYING. If not, write to the
|
64079
|
26 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
27 # Boston, MA 02110-1301, USA.
|
11287
|
28
|
616
|
29 progname="$0"
|
|
30
|
1628
|
31 ### Exit if a command fails.
|
34081
|
32 #set -e
|
616
|
33
|
1628
|
34 ### Print out each line we read, for debugging's sake.
|
34081
|
35 #set -v
|
616
|
36
|
37925
|
37 LANGUAGE=C
|
|
38 LC_ALL=C
|
|
39 LC_MESSAGES=
|
|
40 LANG=
|
|
41 export LANGUAGE LC_ALL LC_MESSAGES LANG
|
|
42
|
20361
036dac77f78f
Changed the comment about `umask 0' to say `Don't restrict access to any
Joel N. Weber II <devnull@gnu.org>
diff
changeset
|
43 ## Don't restrict access to any files.
|
17603
|
44 umask 0
|
|
45
|
16806
|
46 update=yes
|
20785
|
47 check=yes
|
15060
|
48 clean_up=no
|
|
49 make_tar=no
|
992
|
50 newer=""
|
616
|
51
|
|
52 while [ $# -gt 0 ]; do
|
|
53 case "$1" in
|
15060
|
54 ## This option tells make-dist to delete the staging directory
|
|
55 ## when done. It is useless to use this unless you make a tar file.
|
|
56 "--clean-up" )
|
|
57 clean_up=yes
|
621
|
58 ;;
|
15060
|
59 ## This option tells make-dist to make a tar file.
|
|
60 "--tar" )
|
|
61 make_tar=yes
|
616
|
62 ;;
|
16806
|
63 ## This option tells make-dist not to recompile or do analogous things.
|
|
64 "--no-update" )
|
|
65 update=no
|
|
66 ;;
|
20785
|
67 ## This option says don't check for bad file names, etc.
|
|
68 "--no-check" )
|
|
69 check=no
|
|
70 ;;
|
1628
|
71 ## This option tells make-dist to make the distribution normally, then
|
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
diff
changeset
|
72 ## remove all files older than the given timestamp file. This is useful
|
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
diff
changeset
|
73 ## for creating incremental or patch distributions.
|
992
|
74 "--newer")
|
999
|
75 newer="$2"
|
|
76 new_extension=".new"
|
992
|
77 shift
|
|
78 ;;
|
2254
|
79 ## This option tells make-dist to use `compress' instead of gzip.
|
|
80 ## Normally, make-dist uses gzip whenever it is present.
|
|
81 "--compress")
|
|
82 default_gzip="compress"
|
|
83 ;;
|
87594
|
84 ## Same with bzip2.
|
|
85 "--bzip2")
|
|
86 default_gzip="bzip2"
|
|
87 ;;
|
87782
|
88 ## Same with lzma.
|
|
89 "--lzma")
|
|
90 default_gzip="lzma"
|
|
91 ;;
|
29671
|
92
|
|
93 "--snapshot")
|
|
94 clean_up=yes
|
|
95 make_tar=yes
|
|
96 update=no
|
|
97 check=no
|
|
98 ;;
|
|
99
|
|
100 "--help")
|
|
101 echo "Usage: ${progname} [options]"
|
|
102 echo ""
|
87784
|
103 echo " --bzip2 use bzip2 instead of gzip"
|
29671
|
104 echo " --clean-up delete staging directories when done"
|
|
105 echo " --compress use compress instead of gzip"
|
87784
|
106 echo " --lzma use lzma instead of gzip"
|
29671
|
107 echo " --newer=TIME don't include files older than TIME"
|
|
108 echo " --no-check don't check for bad file names etc."
|
|
109 echo " --no-update don't recompile or do analogous things"
|
|
110 echo " --snapshot same as --clean-up --no-update --tar --no-check"
|
|
111 echo " --tar make a tar file"
|
|
112 echo ""
|
|
113 exit 0
|
|
114 ;;
|
|
115
|
616
|
116 * )
|
|
117 echo "${progname}: Unrecognized argument: $1" >&2
|
|
118 exit 1
|
|
119 ;;
|
|
120 esac
|
|
121 shift
|
|
122 done
|
|
123
|
1628
|
124 ### Make sure we're running in the right place.
|
616
|
125 if [ ! -d src -o ! -f src/lisp.h -o ! -d lisp -o ! -f lisp/version.el ]; then
|
992
|
126 echo "${progname}: Can't find \`src/lisp.h' and \`lisp/version.el'." >&2
|
|
127 echo "${progname} must be run in the top directory of the Emacs" >&2
|
4168
|
128 echo "distribution tree. cd to that directory and try again." >&2
|
616
|
129 exit 1
|
|
130 fi
|
|
131
|
16806
|
132 ### Find where to run Emacs.
|
72833
81a55a7dc3c3
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
133 ### (Accept only absolute file names.)
|
16806
|
134 if [ $update = yes ];
|
|
135 then
|
24878
|
136 unset EMACS_UNIBYTE
|
16806
|
137 if [ -f src/emacs ];
|
|
138 then
|
|
139 EMACS=`pwd`/src/emacs
|
|
140 else
|
72833
81a55a7dc3c3
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
141 case $EMACS in
|
81a55a7dc3c3
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
142 /*) ;;
|
81a55a7dc3c3
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
143 *)
|
81a55a7dc3c3
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
144 if [ ! -f "$EMACS" ]; then
|
81a55a7dc3c3
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
145 echo "$0: You must specify the EMACS environment variable " \
|
81a55a7dc3c3
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
146 "to an absolute file name." 2>&1
|
81a55a7dc3c3
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
147 exit 1
|
81a55a7dc3c3
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
148 fi;;
|
81a55a7dc3c3
* etc/NEWS: In terminal-oriented subshells, the EMACS environment
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
149 esac
|
16806
|
150 fi
|
|
151 fi
|
|
152
|
1628
|
153 ### Find out which version of Emacs this is.
|
7259
|
154 shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \
|
7755
|
155 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
|
7259
|
156 version=`grep 'defconst[ ]*emacs-version' lisp/version.el \
|
|
157 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
|
616
|
158 if [ ! "${version}" ]; then
|
14102
|
159 echo "${progname}: can't find current Emacs version in \`./lisp/version.el'" >&2
|
616
|
160 exit 1
|
|
161 fi
|
|
162
|
14102
|
163 echo Version numbers are $version and $shortversion
|
7755
|
164
|
16806
|
165 if [ $update = yes ];
|
|
166 then
|
84349
|
167 if grep -s "@set EMACSVER *${shortversion}" ./doc/emacs/emacs.texi > /dev/null; then
|
16806
|
168 true
|
|
169 else
|
84349
|
170 echo "You must update the version number in \`./doc/emacs/emacs.texi'"
|
16806
|
171 sleep 5
|
|
172 fi
|
2959
|
173 fi
|
|
174
|
5206
|
175 ### Make sure we don't already have a directory emacs-${version}.
|
|
176
|
|
177 emacsname="emacs-${version}${new_extension}"
|
|
178
|
|
179 if [ -d ${emacsname} ]
|
|
180 then
|
|
181 echo Directory "${emacsname}" already exists >&2
|
|
182 exit 1
|
|
183 fi
|
|
184
|
1628
|
185 ### Make sure the subdirectory is available.
|
992
|
186 tempparent="make-dist.tmp.$$"
|
616
|
187 if [ -d ${tempparent} ]; then
|
992
|
188 echo "${progname}: staging directory \`${tempparent}' already exists.
|
|
189 Perhaps a previous invocation of \`${progname}' failed to clean up after
|
|
190 itself. Check that directories whose names are of the form
|
|
191 \`make-dist.tmp.NNNNN' don't contain any important information, remove
|
|
192 them, and try again." >&2
|
616
|
193 exit 1
|
|
194 fi
|
|
195
|
20785
|
196 ### Find where to run Emacs.
|
|
197 if [ $check = yes ];
|
|
198 then
|
|
199 ### Check for .elc files with no corresponding .el file.
|
61546
|
200 ls -1 lisp/[a-zA-Z]*.el lisp/[a-z]*/[a-zA-Z0-9]*.el \
|
27562
|
201 leim/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el
|
61546
|
202 ls -1 lisp/[a-zA-Z]*.elc lisp/[a-z]*/[a-zA-Z0-9]*.elc \
|
27562
|
203 leim/[a-z]*/[a-z]*.elc > /tmp/elc
|
20785
|
204 bogosities="`comm -13 /tmp/el /tmp/elc`"
|
|
205 if [ "${bogosities}" != "" ]; then
|
|
206 echo "The following .elc files have no corresponding .el files:"
|
|
207 echo "${bogosities}"
|
|
208 fi
|
|
209 rm -f /tmp/el /tmp/elc
|
3144
|
210
|
20785
|
211 ### Check for .el files with no corresponding .elc file.
|
61546
|
212 ls -1 lisp/[a-zA-Z]*.el lisp/[a-z]*/[a-zA-Z0-9]*.el \
|
61525
|
213 leim/[a-z]*/[a-z]*.el > /tmp/el
|
61546
|
214 ls -1 lisp/[a-zA-Z]*.elc lisp/[a-z]*/[a-zA-Z0-9]*.elc \
|
61525
|
215 leim/[a-z]*/[a-z]*.elc | sed 's/\.elc$/.el/' > /tmp/elc
|
20785
|
216 losers="`comm -23 /tmp/el /tmp/elc`"
|
|
217 bogosities=
|
|
218 for file in $losers; do
|
61525
|
219 if ! grep -q "no-byte-compile: t" $file; then
|
20785
|
220 case $file in
|
|
221 site-init.el | site-load.el | site-start.el | default.el)
|
|
222 ;;
|
|
223 *)
|
|
224 bogosities="$file $bogosities"
|
|
225 ;;
|
|
226 esac
|
|
227 fi
|
|
228 done
|
|
229 if [ x"${bogosities}" != x"" ]; then
|
|
230 echo "The following .el files have no corresponding .elc files:"
|
|
231 echo "${bogosities}"
|
18039
|
232 fi
|
20785
|
233 rm -f /tmp/el /tmp/elc
|
15301
|
234 fi
|
|
235
|
3258
|
236 ### Make sure configure is newer than configure.in.
|
43410
|
237 if [ "x`ls -t configure configure.in | sed q`" != "xconfigure" ]; then
|
14102
|
238 echo "\`./configure.in' is newer than \`./configure'" >&2
|
|
239 echo "Running autoconf" >&2
|
14978
c92fad046dd3
Wed Apr 10 06:08:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
Roland McGrath <roland@gnu.org>
diff
changeset
|
240 autoconf || { x=$?; echo Autoconf FAILED! >&2; exit $x; }
|
3258
|
241 fi
|
|
242
|
44597
|
243 ### Make sure src/config-in.stamp is newer than configure.in.
|
|
244 if [ "x`ls -t src/stamp-h.in configure.in | sed q`" != "xsrc/stamp-h.in" ]; then
|
|
245 echo "\`./configure.in' is newer than \`./src/stamp-h.in'" >&2
|
|
246 echo "Running autoheader" >&2
|
|
247 autoheader || { x=$?; echo Autoheader FAILED! >&2; exit $x; }
|
|
248 rm -f src/stamp-h.in
|
|
249 echo timestamp > src/stamp-h.in
|
|
250 fi
|
|
251
|
16806
|
252 if [ $update = yes ];
|
|
253 then
|
|
254 echo "Updating Info files"
|
84349
|
255 (cd doc/emacs; make -f Makefile.in srcdir=. info)
|
|
256 (cd doc/misc; make -f Makefile.in srcdir=. info)
|
|
257 (cd doc/lispref; make -f Makefile.in srcdir=. info)
|
|
258 (cd doc/lispintro; make -f Makefile.in SHELL=/bin/sh srcdir=. info VPATH=.)
|
14102
|
259
|
17747
|
260 echo "Updating finder, custom and autoload data"
|
24878
|
261 (cd lisp; make updates EMACS="$EMACS")
|
18992
|
262
|
27562
|
263 if test -f leim/leim-list.el; then
|
|
264 echo "Updating leim-list.el"
|
|
265 (cd leim; make leim-list.el EMACS="$EMACS")
|
|
266 fi
|
19820
|
267
|
|
268 echo "Recompiling Lisp files"
|
|
269 $EMACS -batch -f batch-byte-recompile-directory lisp leim
|
16806
|
270 fi
|
8201
|
271
|
13382
|
272 echo "Making lisp/MANIFEST"
|
|
273
|
22389
|
274 (cd lisp;
|
|
275 files=`echo [!=]*.el | sed -e 's/ subdirs.el / /' -e 's/ default.el / /'`
|
|
276 for dir in [!=]*; do
|
27562
|
277 if [ -d $dir ] && [ $dir != term ] && [ $dir != CVS ] && [ $dir != RCS ]
|
|
278 then
|
22389
|
279 echo $dir
|
|
280 thisdir=`echo $dir/[!=]*.el | sed -e 's/ subdirs.el / /'`
|
|
281 files="$files $thisdir"
|
|
282 fi
|
|
283 done
|
43410
|
284 for file in $files
|
|
285 do sed -n 's/^;;; //p; q' $file
|
|
286 done | sort > MANIFEST)
|
13382
|
287
|
992
|
288 echo "Creating staging directory: \`${tempparent}'"
|
5206
|
289
|
616
|
290 mkdir ${tempparent}
|
|
291 tempdir="${tempparent}/${emacsname}"
|
|
292
|
1628
|
293 ### This trap ensures that the staging directory will be cleaned up even
|
|
294 ### when the script is interrupted in mid-career.
|
994
|
295 if [ "${clean_up}" = yes ]; then
|
14102
|
296 trap "echo 'Interrupted...cleaning up the staging directory'; rm -rf ${tempparent}; exit 1" 1 2 15
|
994
|
297 fi
|
|
298
|
992
|
299 echo "Creating top directory: \`${tempdir}'"
|
616
|
300 mkdir ${tempdir}
|
|
301
|
1628
|
302 ### We copy in the top-level files before creating the subdirectories in
|
|
303 ### hopes that this will make the top-level files appear first in the
|
|
304 ### tar file; this means that people can start reading the INSTALL and
|
|
305 ### README while the rest of the tar file is still unpacking. Whoopee.
|
14102
|
306 echo "Making links to top-level files"
|
86373
b4d02fc0c471
Include nXML. Don't try to copy FTP, it was removed on 2007/10/17.
Romain Francoise <romain@orebokech.com>
diff
changeset
|
307 ln INSTALL README BUGS move-if-change ${tempdir}
|
41783
84b7e5da33e2
Do not try to link removed files (aclocal.m4, _emacs, TODO, vms-pp.trans
Pavel Janík <Pavel@Janik.cz>
diff
changeset
|
308 ln ChangeLog Makefile.in configure configure.in ${tempdir}
|
9578
|
309 ln config.bat make-dist update-subdirs vpath.sed ${tempdir}
|
5206
|
310 ### Copy these files; they're cross-filesystem symlinks.
|
11223
|
311 cp mkinstalldirs ${tempdir}
|
1628
|
312 cp config.sub ${tempdir}
|
3374
|
313 cp config.guess ${tempdir}
|
28821
|
314 cp install-sh ${tempdir}
|
616
|
315
|
14102
|
316 echo "Updating version number in README"
|
2959
|
317 (cd ${tempdir}
|
|
318 awk \
|
|
319 '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 }
|
|
320 $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \
|
|
321 version=${version} README > tmp.README
|
20238
|
322 mv -f tmp.README README)
|
2959
|
323
|
|
324
|
14102
|
325 echo "Creating subdirectories"
|
84349
|
326 for subdir in lisp site-lisp \
|
42218
|
327 leim leim/CXTERM-DIC leim/MISC-DIC \
|
42211
|
328 leim/SKK-DIC leim/ja-dic leim/quail \
|
5629
|
329 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \
|
24181
|
330 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \
|
91204
|
331 etc etc/charsets etc/e etc/gnus etc/nxml \
|
66168
|
332 etc/images etc/images/ezimage etc/images/gnus etc/images/gud \
|
87582
|
333 etc/images/icons etc/images/icons/hicolor \
|
92720
|
334 etc/images/icons/hicolor/*x* etc/images/icons/hicolor/scalable \
|
92723
|
335 etc/images/icons/hicolor/*/apps etc/images/icons/hicolor/*/mimetypes \
|
87582
|
336 etc/images/low-color etc/images/mail \
|
85755
|
337 etc/images/smilies etc/images/smilies/grayscale \
|
|
338 etc/images/smilies/medium etc/images/tree-widget \
|
|
339 etc/images/tree-widget/default etc/images/tree-widget/folder \
|
86373
b4d02fc0c471
Include nXML. Don't try to copy FTP, it was removed on 2007/10/17.
Romain Francoise <romain@orebokech.com>
diff
changeset
|
340 etc/refcards etc/schema etc/tutorials info doc doc/emacs \
|
b4d02fc0c471
Include nXML. Don't try to copy FTP, it was removed on 2007/10/17.
Romain Francoise <romain@orebokech.com>
diff
changeset
|
341 doc/misc doc/man doc/lispref doc/lispintro m4 msdos vms mac \
|
91523
|
342 mac/src mac/Emacs.app mac/Emacs.app/Contents \
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
343 mac/Emacs.app/Contents/MacOS mac/Emacs.app/Contents/Resources \
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
344 mac/Emacs.app/Contents/Resources/English.lproj
|
33572
|
345 do
|
|
346 echo " ${tempdir}/${subdir}"
|
616
|
347 mkdir ${tempdir}/${subdir}
|
|
348 done
|
|
349
|
17603
|
350 echo "Making links to \`lisp' and its subdirectories"
|
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
diff
changeset
|
351 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el.
|
616
|
352 (cd lisp
|
|
353 ln [a-zA-Z]*.el ../${tempdir}/lisp
|
|
354 ln [a-zA-Z]*.elc ../${tempdir}/lisp
|
5033
|
355 ln [a-zA-Z]*.dat ../${tempdir}/lisp
|
31916
|
356 for img in [a-zA-Z]*.xpm [a-zA-Z]*.xbm [a-zA-Z]*.pbm; do
|
31732
|
357 # If there are no images, the shell won't expand the pattern.
|
|
358 if [ -f $img ]; then
|
|
359 ln $img ../${tempdir}/lisp
|
|
360 fi
|
|
361 done
|
1628
|
362 ## simula.el doesn't keep abbreviations in simula.defns any more.
|
|
363 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp
|
61546
|
364 ln ChangeLog ChangeLog.*[0-9] ../${tempdir}/lisp
|
|
365 ln Makefile.in makefile.w32-in ../${tempdir}/lisp
|
27562
|
366 test -f README && ln README ../${tempdir}/lisp
|
17603
|
367 (cd ../${tempdir}/lisp
|
|
368 rm -f TAGS =*
|
|
369 rm -f site-init site-init.el site-init.elc
|
|
370 rm -f site-load site-load.el site-load.elc
|
|
371 rm -f site-start site-start.el site-start.elc
|
|
372 rm -f default default.el default.elc
|
|
373 )
|
616
|
374
|
17603
|
375 ## Find all subdirs of lisp dir
|
|
376 for file in `find . -type d -print`; do
|
|
377 case $file in
|
27562
|
378 . | .. | */Old | */CVS | */RCS | */=*)
|
49600
|
379 ;;
|
17603
|
380 *)
|
|
381 if [ -d $file ]; then
|
|
382 subdirs="$file $subdirs"
|
|
383 fi
|
|
384 ;;
|
|
385 esac
|
|
386 done
|
1792
|
387
|
17603
|
388 for file in $subdirs; do
|
|
389 echo " lisp/$file"
|
86373
b4d02fc0c471
Include nXML. Don't try to copy FTP, it was removed on 2007/10/17.
Romain Francoise <romain@orebokech.com>
diff
changeset
|
390 mkdir -p ../${tempdir}/lisp/$file
|
33572
|
391 ln $file/[a-zA-Z0-9]*.el ../${tempdir}/lisp/$file
|
|
392 ln $file/[a-zA-Z0-9]*.elc ../${tempdir}/lisp/$file
|
|
393 for img in $file/[a-zA-Z]*.xpm $file/[a-zA-Z]*.xbm $file/[a-zA-Z]*.pbm; do
|
31732
|
394 if [ -f $img ]; then
|
|
395 ln $img ../${tempdir}/lisp/$file
|
|
396 fi
|
|
397 done
|
17603
|
398 if [ -f $file/README ]; then
|
|
399 ln $file/README ../${tempdir}/lisp/$file
|
|
400 fi
|
33572
|
401
|
24735
|
402 if [ -f $file/ChangeLog ]; then
|
|
403 ln $file/ChangeLog ../${tempdir}/lisp/$file
|
61546
|
404 for f in $file/ChangeLog.*[0-9]; do
|
33572
|
405 if [ -f $f ]; then
|
|
406 ln $f ../${tempdir}/lisp/$file
|
|
407 fi
|
|
408 done
|
24735
|
409 fi
|
17603
|
410 done )
|
17138
|
411
|
42211
|
412 echo "Making links to \`leim' and its subdirectories"
|
18654
|
413 ### Don't distribute TAGS, or =*.el files.
|
|
414 (cd leim
|
62151
|
415 ln makefile.w32-in ../${tempdir}/leim
|
42211
|
416 ln ChangeLog README ../${tempdir}/leim
|
18654
|
417
|
42211
|
418 ln CXTERM-DIC/*.tit ../${tempdir}/leim/CXTERM-DIC
|
|
419 ln SKK-DIC/README SKK-DIC/SKK-JISYO.L ../${tempdir}/leim/SKK-DIC
|
|
420 ln MISC-DIC/*.* ../${tempdir}/leim/MISC-DIC
|
|
421 ln ja-dic/*.el ja-dic/*.elc ../${tempdir}/leim/ja-dic
|
|
422 ln Makefile.in ../${tempdir}/leim/Makefile.in
|
56178
|
423 ln leim-ext.el ../${tempdir}/leim/leim-ext.el
|
61546
|
424 ## Lisp files that start with a capital are generated from TIT
|
|
425 ## dictionaries so we don't distribute them.
|
42211
|
426 ln quail/[a-z]*.el quail/[a-z]*.elc ../${tempdir}/leim/quail
|
|
427 rm -f ../${tempdir}/leim/quail/quick-b5.*
|
|
428 rm -f ../${tempdir}/leim/quail/quick-cns.*
|
|
429 rm -f ../${tempdir}/leim/quail/tsang-b5.*
|
|
430 rm -f ../${tempdir}/leim/quail/tsang-cns.*
|
27562
|
431
|
42211
|
432 cd ../${tempdir}/leim
|
18654
|
433 rm -f TAGS =* */=*)
|
|
434
|
14102
|
435 echo "Making links to \`src'"
|
1628
|
436 ### Don't distribute =*.[ch] files, or the configured versions of
|
13325
5a333a8e0ee1
Use new names config.in, paths.in, and {src,lib-src}/Makefile.in.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
437 ### config.in, paths.in, or Makefile.in, or TAGS.
|
616
|
438 (cd src
|
16806
|
439 echo " (It is ok if ln fails in some cases.)"
|
616
|
440 ln [a-zA-Z]*.c ../${tempdir}/src
|
|
441 ln [a-zA-Z]*.h ../${tempdir}/src
|
|
442 ln [a-zA-Z]*.s ../${tempdir}/src
|
16806
|
443 ln [a-zA-Z]*.in ../${tempdir}/src
|
|
444 ln [a-zA-Z]*.opt ../${tempdir}/src
|
|
445 ## If we ended up with a symlink, or if we did not get anything
|
|
446 ## due to a cross-device symlink, copy the file.
|
|
447 for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in [a-zA-Z]*.opt; do
|
|
448 if test -f ../${tempdir}/src/$file; then
|
|
449 # test -f appears to succeed for a symlink
|
|
450 if test -L ../${tempdir}/src/$file; then
|
|
451 rm ../${tempdir}/src/$file
|
19962
|
452 cp -p $file ../${tempdir}/src
|
16806
|
453 chmod a-w ../${tempdir}/src/$file
|
|
454 fi
|
|
455 else
|
|
456 rm ../${tempdir}/src/$file
|
19962
|
457 cp -p $file ../${tempdir}/src
|
16806
|
458 chmod a-w ../${tempdir}/src/$file
|
|
459 fi
|
|
460 done
|
|
461 ln README ChangeLog ChangeLog.*[0-9] ../${tempdir}/src
|
62151
|
462 ln makefile.w32-in ../${tempdir}/src
|
4489
|
463 ln .gdbinit .dbxinit ../${tempdir}/src
|
616
|
464 cd ../${tempdir}/src
|
34081
|
465 rm -f config.h epaths.h Makefile Makefile.c
|
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
diff
changeset
|
466 rm -f =* TAGS)
|
616
|
467
|
14102
|
468 echo "Making links to \`src/bitmaps'"
|
2180
|
469 (cd src/bitmaps
|
|
470 ln README *.xbm ../../${tempdir}/src/bitmaps)
|
|
471
|
14102
|
472 echo "Making links to \`src/m'"
|
616
|
473 (cd src/m
|
8578
|
474 # We call files for miscellaneous input (to linker etc) .inp.
|
|
475 ln README [a-zA-Z0-9]*.h *.inp ../../${tempdir}/src/m)
|
616
|
476
|
14102
|
477 echo "Making links to \`src/s'"
|
616
|
478 (cd src/s
|
11666
|
479 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s)
|
616
|
480
|
14102
|
481 echo "Making links to \`lib-src'"
|
616
|
482 (cd lib-src
|
11226
|
483 ln [a-zA-Z]*.[chy] ../${tempdir}/lib-src
|
13325
5a333a8e0ee1
Use new names config.in, paths.in, and {src,lib-src}/Makefile.in.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
484 ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src
|
62151
|
485 ln grep-changelog rcs2log rcs-checkin ../${tempdir}/lib-src
|
33572
|
486 ln makefile.w32-in ../${tempdir}/lib-src
|
16806
|
487 ## If we ended up with a symlink, or if we did not get anything
|
|
488 ## due to a cross-device symlink, copy the file.
|
|
489 for file in [a-zA-Z]*.[chy]; do
|
|
490 if test -f ../${tempdir}/lib-src/$file; then
|
|
491 # test -f appears to succeed for a symlink
|
|
492 if test -L ../${tempdir}/lib-src/$file; then
|
|
493 rm ../${tempdir}/lib-src/$file
|
|
494 cp $file ../${tempdir}/lib-src
|
|
495 chmod a-w ../${tempdir}/lib-src/$file
|
|
496 fi
|
|
497 else
|
|
498 rm ../${tempdir}/lib-src/$file
|
|
499 cp $file ../${tempdir}/lib-src
|
|
500 chmod a-w ../${tempdir}/lib-src/$file
|
|
501 fi
|
|
502 done
|
992
|
503 cd ../${tempdir}/lib-src
|
16806
|
504 rm -f Makefile.c
|
64639
|
505 rm -f getopt.h
|
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
diff
changeset
|
506 rm -f =* TAGS)
|
616
|
507
|
64639
|
508 echo "Making links to \`m4'"
|
|
509 (cd m4
|
|
510 ln *.m4 ../${tempdir}/m4)
|
|
511
|
14102
|
512 echo "Making links to \`nt'"
|
9805
|
513 (cd nt
|
79966
|
514 ln emacs.manifest emacs.rc config.nt [a-z]*.c ../${tempdir}/nt
|
41783
84b7e5da33e2
Do not try to link removed files (aclocal.m4, _emacs, TODO, vms-pp.trans
Pavel Janík <Pavel@Janik.cz>
diff
changeset
|
515 ln nmake.defs gmake.defs subdirs.el ../${tempdir}/nt
|
62151
|
516 ln [a-z]*.bat [a-z]*.h ../${tempdir}/nt
|
41783
84b7e5da33e2
Do not try to link removed files (aclocal.m4, _emacs, TODO, vms-pp.trans
Pavel Janík <Pavel@Janik.cz>
diff
changeset
|
517 ln ChangeLog INSTALL README makefile.w32-in ../${tempdir}/nt)
|
9805
|
518
|
14102
|
519 echo "Making links to \`nt/inc'"
|
9805
|
520 (cd nt/inc
|
11666
|
521 ln [a-z]*.h ../../${tempdir}/nt/inc)
|
9805
|
522
|
14102
|
523 echo "Making links to \`nt/inc/sys'"
|
9805
|
524 (cd nt/inc/sys
|
11666
|
525 ln [a-z]*.h ../../../${tempdir}/nt/inc/sys)
|
9805
|
526
|
15158
|
527 echo "Making links to \`nt/inc/arpa'"
|
|
528 (cd nt/inc/arpa
|
|
529 ln [a-z]*.h ../../../${tempdir}/nt/inc/arpa)
|
|
530
|
|
531 echo "Making links to \`nt/inc/netinet'"
|
|
532 (cd nt/inc/netinet
|
|
533 ln [a-z]*.h ../../../${tempdir}/nt/inc/netinet)
|
|
534
|
24181
|
535 echo "Making links to \`nt/icons'"
|
|
536 (cd nt/icons
|
53521
|
537 ln [a-z]*.ico ../../${tempdir}/nt/icons
|
|
538 ln [a-z]*.cur ../../${tempdir}/nt/icons)
|
24181
|
539
|
33572
|
540 echo "Making links to \`mac'"
|
|
541 (cd mac
|
91523
|
542 ln ChangeLog INSTALL README make-package ../${tempdir}/mac)
|
33572
|
543
|
|
544 echo "Making links to \`mac/src'"
|
|
545 (cd mac/src
|
|
546 ln [a-z]*.c *.r ../../${tempdir}/mac/src)
|
|
547
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
548 echo "Making links to \`mac/Emacs.app/Contents'"
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
549 (cd mac/Emacs.app/Contents
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
550 ln Info.plist PkgInfo ../../../${tempdir}/mac/Emacs.app/Contents)
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
551
|
73512
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
diff
changeset
|
552 echo "Making links to \`mac/Emacs.app/Contents/Resources'"
|
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
diff
changeset
|
553 (cd mac/Emacs.app/Contents/Resources
|
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
diff
changeset
|
554 ln Emacs.icns ../../../../${tempdir}/mac/Emacs.app/Contents/Resources)
|
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
diff
changeset
|
555
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
556 echo "Making links to \`mac/Emacs.app/Contents/Resources/English.lproj'"
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
557 (cd mac/Emacs.app/Contents/Resources/English.lproj
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
558 ln InfoPlist.strings ../../../../../${tempdir}/mac/Emacs.app/Contents/Resources/English.lproj)
|
49600
|
559
|
14102
|
560 echo "Making links to \`msdos'"
|
5471
|
561 (cd msdos
|
|
562 ln ChangeLog emacs.ico emacs.pif ../${tempdir}/msdos
|
15823
|
563 ln is_exec.c sigaction.c mainmake mainmake.v2 sed*.inp ../${tempdir}/msdos
|
5471
|
564 cd ../${tempdir}/msdos
|
|
565 rm -f =*)
|
|
566
|
14102
|
567 echo "Making links to \`oldXMenu'"
|
616
|
568 (cd oldXMenu
|
2832
47d8f937a4bc
* make-dist: Include any *.in files in oldXMenu in the distribution.
Jim Blandy <jimb@redhat.com>
diff
changeset
|
569 ln *.c *.h *.in ../${tempdir}/oldXMenu
|
76171
|
570 ln README ChangeLog ../${tempdir}/oldXMenu
|
2487
|
571 ln compile.com descrip.mms ../${tempdir}/oldXMenu)
|
616
|
572
|
14102
|
573 echo "Making links to \`lwlib'"
|
5629
|
574 (cd lwlib
|
|
575 ln *.c *.h *.in ../${tempdir}/lwlib
|
44958
|
576 ln README ChangeLog ../${tempdir}/lwlib)
|
5629
|
577
|
14102
|
578 echo "Making links to \`etc'"
|
2487
|
579 ### Don't distribute = files, TAGS, DOC files, backups, autosaves, or
|
|
580 ### tex litter.
|
616
|
581 (cd etc
|
62151
|
582 files=`ls -d * | grep -v CVS | grep -v RCS | grep -v 'Old' | grep -v '^e$' \
|
91204
|
583 | grep -v '^charsets$' | grep -v '^gnus$' | grep -v '^images$' | grep -v '^nxml$' \
|
86938
|
584 | grep -v '^refcards$' | grep -v '^tutorials$'| grep -v '^schema$'`
|
18691
|
585 ln $files ../${tempdir}/etc
|
18515
|
586 ## If we ended up with a symlink, or if we did not get anything
|
|
587 ## due to a cross-device symlink, copy the file.
|
18691
|
588 for file in $files; do
|
18515
|
589 if test -f ../${tempdir}/etc/$file; then
|
|
590 # test -f appears to succeed for a symlink
|
|
591 if test -L ../${tempdir}/etc/$file; then
|
|
592 rm ../${tempdir}/etc/$file
|
|
593 cp $file ../${tempdir}/etc
|
|
594 chmod a-w ../${tempdir}/etc/$file
|
|
595 fi
|
|
596 else
|
|
597 rm ../${tempdir}/etc/$file
|
|
598 cp $file ../${tempdir}/etc
|
|
599 chmod a-w ../${tempdir}/etc/$file
|
|
600 fi
|
|
601 done
|
616
|
602 cd ../${tempdir}/etc
|
84349
|
603 rm -f fns*.el
|
13634
|
604 rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core
|
2487
|
605 rm -f TAGS)
|
616
|
606
|
91204
|
607 for dir in etc/charsets etc/e etc/gnus etc/nxml etc/tutorials etc/refcards etc/schema ; do
|
82763
|
608 echo "Making links to \`${dir}'"
|
|
609 (cd ${dir}
|
|
610 ln `ls -d * | grep -v CVS | grep -v RCS` ../../${tempdir}/${dir}
|
|
611 cd ../../${tempdir}/${dir}
|
|
612 rm -f *~ \#*\# *,v =* core)
|
|
613 done
|
10065
|
614
|
65898
|
615 echo "Making links to \`etc/images'"
|
|
616 (cd etc/images
|
76171
|
617 for img in README [a-zA-Z]*.xpm [a-zA-Z]*.xbm [a-zA-Z]*.pbm; do
|
65898
|
618 if [ -f $img ]; then
|
|
619 ln $img ../../${tempdir}/etc/images
|
|
620 fi
|
|
621 done)
|
|
622
|
67078
|
623 for dir in etc/images/ezimage etc/images/gnus etc/images/gud etc/images/icons \
|
82763
|
624 etc/images/low-color etc/images/mail etc/images/smilies ; do
|
62151
|
625 echo "Making links to \`${dir}'"
|
|
626 (cd ${dir}
|
|
627 ln `ls -d * | grep -v CVS | grep -v RCS` ../../../${tempdir}/${dir}
|
|
628 cd ../../../${tempdir}/${dir}
|
|
629 rm -f *~ \#*\# *,v =* core)
|
|
630 done
|
|
631
|
85755
|
632 for dir in etc/images/tree-widget/default etc/images/tree-widget/folder \
|
87582
|
633 etc/images/smilies/grayscale etc/images/smilies/medium; do
|
82763
|
634 echo "Making links to \`${dir}'"
|
|
635 (cd ${dir}
|
|
636 ln `ls -d * | grep -v CVS | grep -v RCS` ../../../../${tempdir}/${dir}
|
|
637 cd ../../../../${tempdir}/${dir}
|
|
638 rm -f *~ \#*\# *,v =* core)
|
|
639 done
|
|
640
|
92723
|
641 for dir in etc/images/icons/hicolor/*/apps \
|
|
642 etc/images/icons/hicolor/*/mimetypes; do
|
87582
|
643 echo "Making links to \`${dir}'"
|
|
644 (cd ${dir}
|
|
645 ln `ls -d * | grep -v CVS | grep -v RCS` ../../../../../../${tempdir}/${dir}
|
|
646 cd ../../../../../../${tempdir}/${dir}
|
|
647 rm -f *~ \#*\# *,v =* core)
|
|
648 done
|
|
649
|
14102
|
650 echo "Making links to \`info'"
|
2792
|
651 # Don't distribute backups or autosaves.
|
|
652 (cd info
|
33572
|
653 ln `find . -type f -print | grep -v CVS | grep -v RCS | grep -v cvsignore` ../${tempdir}/info
|
27562
|
654 #ln [a-zA-Z]* ../${tempdir}/info
|
2792
|
655 cd ../${tempdir}/info
|
|
656 # Avoid an error when expanding the wildcards later.
|
|
657 ln emacs dummy~ ; ln emacs \#dummy\#
|
|
658 rm -f *~ \#*\# core)
|
1792
|
659
|
84349
|
660 echo "Making links to \`doc/emacs'"
|
|
661 (cd doc/emacs
|
|
662 ln *.texi *.aux *.cps *.fns *.kys *.vrs ../../${tempdir}/doc/emacs
|
|
663 ln makefile.w32-in ../../${tempdir}/doc/emacs
|
|
664 test -f README && ln README ../../${tempdir}/doc/emacs
|
|
665 test -f Makefile.in && ln Makefile.in ../../${tempdir}/doc/emacs
|
|
666 ln ChangeLog ../../${tempdir}/doc/emacs
|
|
667 cp texinfo.tex ../../${tempdir}/doc/emacs
|
|
668 cd ../../${tempdir}/doc/emacs
|
|
669 rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail
|
|
670 rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux)
|
|
671
|
|
672 echo "Making links to \`doc/misc'"
|
|
673 (cd doc/misc
|
|
674 ln *.texi *.aux *.cps *.fns *.kys *.vrs ../../${tempdir}/doc/misc
|
|
675 ln makefile.w32-in ../../${tempdir}/doc/misc
|
|
676 test -f README && ln README ../../${tempdir}/doc/misc
|
|
677 test -f Makefile.in && ln Makefile.in ../../${tempdir}/doc/misc
|
|
678 ln ChangeLog ../../${tempdir}/doc/misc
|
|
679 cp texinfo.tex ../../${tempdir}/doc/misc
|
|
680 cd ../../${tempdir}/doc/misc
|
2676
|
681 rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail
|
|
682 rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux)
|
616
|
683
|
84349
|
684 echo "Making links to \`doc/lispref'"
|
|
685 (cd doc/lispref
|
|
686 ln `ls -1 *.texi` ../../${tempdir}/doc/lispref
|
|
687 ln *.aux *.cps *.fns *.kys *.vrs ../../${tempdir}/doc/lispref
|
|
688 ln *.txt *.el spellfile tindex.pl ../../${tempdir}/doc/lispref
|
|
689 ln makefile.w32-in ../../${tempdir}/doc/lispref
|
|
690 test -f README && ln README ../../${tempdir}/doc/lispref
|
|
691 test -f Makefile.in && ln Makefile.in ../../${tempdir}/doc/lispref
|
|
692 ln ChangeLog ../../${tempdir}/doc/lispref
|
|
693 cd ../../${tempdir}/doc/lispref
|
40885
|
694 rm -f \#*\# =* *~ core elisp-index* *.Z *.z xmail
|
|
695 rm -f elisp.?? *.log *.toc *.dvi *.oaux)
|
|
696
|
84349
|
697 echo "Making links to \`doc/lispintro'"
|
|
698 (cd doc/lispintro
|
|
699 ln *.texi *.aux *.cps *.fns *.kys *.vrs *.eps ../../${tempdir}/doc/lispintro
|
|
700 ln makefile.w32-in ../../${tempdir}/doc/lispintro
|
|
701 test -f texinfo.tex && ln texinfo.tex ../../${tempdir}/doc/lispintro
|
|
702 test -f README && ln README ../../${tempdir}/doc/lispintro
|
|
703 test -f Makefile.in && ln Makefile.in ../../${tempdir}/doc/lispintro
|
|
704 ln ChangeLog ../../${tempdir}/doc/lispintro
|
|
705 cd ../../${tempdir}/doc/lispintro
|
41435
|
706 rm -f \#*\# =* *~ core *.Z *.z xmail
|
|
707 rm -f emacs-lisp-intro.?? *.log *.toc *.dvi *.oaux)
|
|
708
|
84349
|
709 echo "Making links to \`doc/man'"
|
|
710 (cd doc/man
|
84595
|
711 ln *.1 ../../${tempdir}/doc/man)
|
84349
|
712
|
14102
|
713 echo "Making links to \`vms'"
|
1364
|
714 (cd vms
|
27562
|
715 test -f README && ln README ../${tempdir}/vms
|
1364
|
716 cd ../${tempdir}/vms
|
|
717 rm -f *~)
|
|
718
|
41906
|
719 ### It would be nice if they could all be symlinks to top-level copy, but
|
1700
|
720 ### you're not supposed to have any symlinks in distribution tar files.
|
41682
|
721 echo "Making sure copying notices are all copies of \`COPYING'"
|
41895
80482c216b03
Copy COPYING to leim/, lwlib/, mac/ and nt/ when creating distribution.
Pavel Janík <Pavel@Janik.cz>
diff
changeset
|
722 for subdir in . etc info leim lib-src lisp lwlib mac msdos nt src; do
|
41663
1cc9127ddf72
Add COPYING to the top-level directory of the distribution. Simplify the
Pavel Janík <Pavel@Janik.cz>
diff
changeset
|
723 rm -f ${tempdir}/${subdir}/COPYING
|
41682
|
724 cp COPYING ${tempdir}/${subdir}
|
616
|
725 done
|
|
726
|
992
|
727 if [ "${newer}" ]; then
|
14102
|
728 echo "Removing files older than $newer"
|
1628
|
729 ## We remove .elc files unconditionally, on the theory that anyone picking
|
|
730 ## up an incremental distribution already has a running Emacs to byte-compile
|
|
731 ## them with.
|
992
|
732 find ${tempparent} \( -name '*.elc' -o ! -newer ${newer} \) -exec rm -f {} \;
|
|
733 fi
|
|
734
|
621
|
735 if [ "${make_tar}" = yes ]; then
|
2254
|
736 if [ "${default_gzip}" = "" ]; then
|
14102
|
737 echo "Looking for gzip"
|
2254
|
738 temppath=`echo $PATH | sed 's/^:/.:/
|
|
739 s/::/:.:/g
|
|
740 s/:$/:./
|
|
741 s/:/ /g'`
|
|
742 default_gzip=`(
|
|
743 for dir in ${temppath}; do
|
|
744 if [ -f ${dir}/gzip ]; then echo 'gzip --best'; exit 0; fi
|
|
745 done
|
|
746 echo compress
|
|
747 )`
|
|
748 fi
|
2487
|
749 case "${default_gzip}" in
|
87594
|
750 bzip2) gzip_extension=.bz2 ;;
|
2487
|
751 compress* ) gzip_extension=.Z ;;
|
87782
|
752 lzma) gzip_extension=.lzma ;;
|
3818
ec5cc4995395
* make-dist: If using gzip, create distribution with '.gz' extension.
Jim Blandy <jimb@redhat.com>
diff
changeset
|
753 * ) gzip_extension=.gz ;;
|
2487
|
754 esac
|
42211
|
755 echo "Creating tar file"
|
2487
|
756 (cd ${tempparent} ; tar cvf - ${emacsname} ) \
|
|
757 | ${default_gzip} \
|
|
758 > ${emacsname}.tar${gzip_extension}
|
621
|
759 fi
|
616
|
760
|
621
|
761 if [ "${clean_up}" = yes ]; then
|
14102
|
762 echo "Cleaning up the staging directory"
|
2487
|
763 rm -rf ${tempparent}
|
5206
|
764 else
|
42211
|
765 (cd ${tempparent}; mv ${emacsname} ..)
|
5206
|
766 rm -rf ${tempparent}
|
616
|
767 fi
|
994
|
768
|
52401
|
769 # arch-tag: 26e3eb50-a394-4ab2-82b2-d8e5af500de7
|
1628
|
770 ### make-dist ends here
|