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