Mercurial > emacs
annotate make-dist @ 3464:0d4f6d14bca1
(xmakefile): Depend on ../config.status.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 03 Jun 1993 22:42:02 +0000 |
parents | 3f87ded07a67 |
children | cecefb2ab758 |
rev | line source |
---|---|
616 | 1 #!/bin/sh |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
2 |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
3 #### make-dist: create an Emacs distribution tar file from the current |
1688
c4da55e6cfd3
* make-dist: Don't bother creating an arch-lib directory; that's
Jim Blandy <jimb@redhat.com>
parents:
1640
diff
changeset
|
4 #### source tree. This basically creates a duplicate directory |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
5 #### structure, and then hard links into it only those files that should |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
6 #### be distributed. This means that if you add a file with an odd name, |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
7 #### you should make sure that this script will include it. |
616 | 8 |
9 progname="$0" | |
10 | |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
11 ### Exit if a command fails. |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
12 ### set -e |
616 | 13 |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
14 ### Print out each line we read, for debugging's sake. |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
15 ### set -v |
616 | 16 |
621 | 17 clean_up=yes |
18 make_tar=yes | |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
19 newer="" |
616 | 20 |
21 while [ $# -gt 0 ]; do | |
22 case "$1" in | |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
23 ## This option tells make-dist not to delete the staging directory |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
24 ## after it's done making the tar file. |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
25 "--no-clean-up" ) |
621 | 26 clean_up=no |
27 ;; | |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
28 ## This option tells make-dist not to make a tar file. Since it's |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
29 ## rather pointless to build the whole staging directory and then |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
30 ## nuke it, using this option also selects '--no-clean-up'. |
621 | 31 "--no-tar" ) |
32 make_tar=no | |
33 clean_up=no | |
616 | 34 ;; |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
35 ## 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>
parents:
2254
diff
changeset
|
36 ## 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>
parents:
2254
diff
changeset
|
37 ## for creating incremental or patch distributions. |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
38 "--newer") |
999 | 39 newer="$2" |
40 new_extension=".new" | |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
41 shift |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
42 ;; |
2254
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
43 ## This option tells make-dist to use `compress' instead of gzip. |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
44 ## Normally, make-dist uses gzip whenever it is present. |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
45 "--compress") |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
46 default_gzip="compress" |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
47 ;; |
616 | 48 * ) |
49 echo "${progname}: Unrecognized argument: $1" >&2 | |
50 exit 1 | |
51 ;; | |
52 esac | |
53 shift | |
54 done | |
55 | |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
56 ### Make sure we're running in the right place. |
616 | 57 if [ ! -d src -o ! -f src/lisp.h -o ! -d lisp -o ! -f lisp/version.el ]; then |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
58 echo "${progname}: Can't find \`src/lisp.h' and \`lisp/version.el'." >&2 |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
59 echo "${progname} must be run in the top directory of the Emacs" >&2 |
616 | 60 echo "distribution tree. Cd to that directory and try again." >&2 |
61 exit 1 | |
62 fi | |
63 | |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
64 ### Find out which version of Emacs this is. |
616 | 65 version=`grep 'defconst[ ]*emacs-version' lisp/version.el \ |
1112 | 66 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'` |
616 | 67 if [ ! "${version}" ]; then |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
68 echo "${progname}: can't find current emacs version in \`./lisp/version.el'." >&2 |
616 | 69 exit 1 |
70 fi | |
71 | |
2959
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
72 if grep -s "GNU Emacs version ${version}" ./man/emacs.texi > /dev/null; then |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
73 true |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
74 else |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
75 echo "You must update the version number in \`./man/emacs.texi'" |
3422
3f87ded07a67
Don't hassle me about emacs.texi.
Richard M. Stallman <rms@gnu.org>
parents:
3374
diff
changeset
|
76 sleep 5 |
2959
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
77 fi |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
78 |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
79 ### Make sure the subdirectory is available. |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
80 tempparent="make-dist.tmp.$$" |
616 | 81 if [ -d ${tempparent} ]; then |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
82 echo "${progname}: staging directory \`${tempparent}' already exists. |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
83 Perhaps a previous invocation of \`${progname}' failed to clean up after |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
84 itself. Check that directories whose names are of the form |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
85 \`make-dist.tmp.NNNNN' don't contain any important information, remove |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
86 them, and try again." >&2 |
616 | 87 exit 1 |
88 fi | |
89 | |
3144
7ecd0f1c7465
* make-dist: Check for .elc files with no corresponding .el file.
Jim Blandy <jimb@redhat.com>
parents:
3022
diff
changeset
|
90 ### Check for .elc files with no corresponding .el file. |
7ecd0f1c7465
* make-dist: Check for .elc files with no corresponding .el file.
Jim Blandy <jimb@redhat.com>
parents:
3022
diff
changeset
|
91 ls -1 lisp/*.el | sed 's/\.el$/.elc/' > /tmp/el |
7ecd0f1c7465
* make-dist: Check for .elc files with no corresponding .el file.
Jim Blandy <jimb@redhat.com>
parents:
3022
diff
changeset
|
92 ls -1 lisp/*.elc > /tmp/elc |
3146
6bdedf954822
Report .elc bogosities more clearly.
Jim Blandy <jimb@redhat.com>
parents:
3144
diff
changeset
|
93 bogosities="`comm -13 /tmp/el /tmp/elc`" |
6bdedf954822
Report .elc bogosities more clearly.
Jim Blandy <jimb@redhat.com>
parents:
3144
diff
changeset
|
94 if [ "${bogosities}" != "" ]; then |
6bdedf954822
Report .elc bogosities more clearly.
Jim Blandy <jimb@redhat.com>
parents:
3144
diff
changeset
|
95 echo "The following .elc files have no corresponding .el files:" |
6bdedf954822
Report .elc bogosities more clearly.
Jim Blandy <jimb@redhat.com>
parents:
3144
diff
changeset
|
96 echo "${bogosities}" |
6bdedf954822
Report .elc bogosities more clearly.
Jim Blandy <jimb@redhat.com>
parents:
3144
diff
changeset
|
97 fi |
3155
b18adae0a424
Don't forget to remove temporary files.
Jim Blandy <jimb@redhat.com>
parents:
3146
diff
changeset
|
98 rm -f /tmp/el /tmp/elc |
3144
7ecd0f1c7465
* make-dist: Check for .elc files with no corresponding .el file.
Jim Blandy <jimb@redhat.com>
parents:
3022
diff
changeset
|
99 |
3258
27b7aa2bcf21
* make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents:
3206
diff
changeset
|
100 ### Make sure configure is newer than configure.in. |
27b7aa2bcf21
* make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents:
3206
diff
changeset
|
101 if [ "x`ls -t configure configure.in | head -1`" != "xconfigure" ]; then |
27b7aa2bcf21
* make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents:
3206
diff
changeset
|
102 echo "`./configure.in' seems to be newer than `./configure.'" >&2 |
27b7aa2bcf21
* make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents:
3206
diff
changeset
|
103 echo "Attempting to run autoconf." >&2 |
27b7aa2bcf21
* make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents:
3206
diff
changeset
|
104 autoconf |
27b7aa2bcf21
* make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents:
3206
diff
changeset
|
105 fi |
27b7aa2bcf21
* make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents:
3206
diff
changeset
|
106 |
3374 | 107 ### Update getdate.c. |
108 (cd lib-src; make -f Makefile.in getdate.c) | |
109 | |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
110 echo "Creating staging directory: \`${tempparent}'" |
616 | 111 mkdir ${tempparent} |
999 | 112 emacsname="emacs-${version}${new_extension}" |
616 | 113 tempdir="${tempparent}/${emacsname}" |
114 | |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
115 ### This trap ensures that the staging directory will be cleaned up even |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
116 ### when the script is interrupted in mid-career. |
994
5b2a1922c4d5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
992
diff
changeset
|
117 if [ "${clean_up}" = yes ]; then |
5b2a1922c4d5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
992
diff
changeset
|
118 trap "echo 'Interrupted...cleaning up the staging directory.'; rm -rf ${tempparent}; exit 1" 1 2 15 |
5b2a1922c4d5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
992
diff
changeset
|
119 fi |
5b2a1922c4d5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
992
diff
changeset
|
120 |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
121 echo "Creating top directory: \`${tempdir}'" |
616 | 122 mkdir ${tempdir} |
123 | |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
124 ### We copy in the top-level files before creating the subdirectories in |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
125 ### hopes that this will make the top-level files appear first in the |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
126 ### tar file; this means that people can start reading the INSTALL and |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
127 ### README while the rest of the tar file is still unpacking. Whoopee. |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
128 echo "Making links to top-level files." |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
129 ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} |
2625
f63a9c97f1d6
* make-dist: Distribute configure, as well as configure.in.
Jim Blandy <jimb@redhat.com>
parents:
2500
diff
changeset
|
130 ln ChangeLog Makefile.in build-install.in configure configure.in ${tempdir} |
1574
352988418dbd
* make-dist: Don't forget that the way to avoid filenames starting
Jim Blandy <jimb@redhat.com>
parents:
1560
diff
changeset
|
131 ln make-dist ${tempdir} |
3374 | 132 ### Copy config.guess and config.sub; they're cross-filesystem symlinks. |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
133 cp config.sub ${tempdir} |
3374 | 134 cp config.guess ${tempdir} |
616 | 135 |
2959
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
136 echo "Updating version number in README." |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
137 (cd ${tempdir} |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
138 awk \ |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
139 '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 } |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
140 $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \ |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
141 version=${version} README > tmp.README |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
142 mv tmp.README README) |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
143 |
d3f30c15d39f
* make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents:
2927
diff
changeset
|
144 |
616 | 145 echo "Creating subdirectories." |
1901
3be68763709f
* make-dist: Don't distribute the external-lisp directory anymore.
Jim Blandy <jimb@redhat.com>
parents:
1823
diff
changeset
|
146 # I think we're not going to distribute anything in external-lisp, so |
3be68763709f
* make-dist: Don't distribute the external-lisp directory anymore.
Jim Blandy <jimb@redhat.com>
parents:
1823
diff
changeset
|
147 # I've removed it from this list. |
3206
3d245dcabb93
* make-dist: Make a `site-lisp' directory in the distribution,
Jim Blandy <jimb@redhat.com>
parents:
3155
diff
changeset
|
148 for subdir in lisp lisp/term site-lisp \ |
2180
0b629ab3f06a
* make-dist: Distribute `src/bitmaps' too.
Jim Blandy <jimb@redhat.com>
parents:
1997
diff
changeset
|
149 src src/m src/s src/bitmaps lib-src oldXMenu \ |
1688
c4da55e6cfd3
* make-dist: Don't bother creating an arch-lib directory; that's
Jim Blandy <jimb@redhat.com>
parents:
1640
diff
changeset
|
150 etc lock cpp info man shortnames vms; do |
616 | 151 mkdir ${tempdir}/${subdir} |
152 done | |
153 | |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
154 echo "Making links to \`lisp'." |
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
155 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el. |
616 | 156 (cd lisp |
157 ln [a-zA-Z]*.el ../${tempdir}/lisp | |
158 ln [a-zA-Z]*.elc ../${tempdir}/lisp | |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
159 ## simula.el doesn't keep abbreviations in simula.defns any more. |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
160 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp |
616 | 161 ln ChangeLog README ../${tempdir}/lisp |
162 cd ../${tempdir}/lisp | |
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
163 rm -f TAGS =* |
616 | 164 rm -f site-init site-init.el site-init.elc |
999 | 165 rm -f site-load site-load.el site-load.elc |
166 rm -f default default.el default.elc) | |
616 | 167 |
2676
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
168 #echo "Making links to \`lisp/calc-2.02'." |
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
169 #### Don't distribute =*.el files, TAGS or backups. |
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
170 #(cd lisp/calc-2.02 |
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
171 # ln [a-zA-Z]*.el ../../${tempdir}/lisp/calc-2.02 |
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
172 # ln [a-zA-Z]*.elc ../../${tempdir}/lisp/calc-2.02 |
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
173 # ln calc.info* calc.texinfo calc-refcard.* ../../${tempdir}/lisp/calc-2.02 |
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
174 # ln INSTALL Makefile README README.prev ../../${tempdir}/lisp/calc-2.02 |
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
175 # cd ../../${tempdir}/lisp/calc-2.02 |
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
176 # rm -f *~ TAGS) |
1792
1136bc94d196
* make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents:
1790
diff
changeset
|
177 |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
178 echo "Making links to \`lisp/term'." |
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
179 ### Don't distribute =*.el files or TAGS. |
616 | 180 (cd lisp/term |
181 ln [a-zA-Z]*.el ../../${tempdir}/lisp/term | |
182 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/term | |
2368
ff45a6d7b464
* make-dist: Distribute lisp/term/ChangeLog.
Jim Blandy <jimb@redhat.com>
parents:
2350
diff
changeset
|
183 ln README ChangeLog ../../${tempdir}/lisp/term |
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
184 rm -f =* TAGS) |
616 | 185 |
1901
3be68763709f
* make-dist: Don't distribute the external-lisp directory anymore.
Jim Blandy <jimb@redhat.com>
parents:
1823
diff
changeset
|
186 ### echo "Making links to \`external-lisp'." |
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
187 ### ### Don't distribute =*.el files or TAGS. |
1901
3be68763709f
* make-dist: Don't distribute the external-lisp directory anymore.
Jim Blandy <jimb@redhat.com>
parents:
1823
diff
changeset
|
188 ### (cd external-lisp |
3be68763709f
* make-dist: Don't distribute the external-lisp directory anymore.
Jim Blandy <jimb@redhat.com>
parents:
1823
diff
changeset
|
189 ### ln [a-zA-Z]*.el ../${tempdir}/external-lisp |
3be68763709f
* make-dist: Don't distribute the external-lisp directory anymore.
Jim Blandy <jimb@redhat.com>
parents:
1823
diff
changeset
|
190 ### ln [a-zA-Z]*.elc ../${tempdir}/external-lisp |
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
191 ### ln ChangeLog README ../${tempdir}/external-lisp |
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
192 ### rm -f =* TAGS) |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
193 |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
194 echo "Making links to \`src'." |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
195 ### Don't distribute =*.[ch] files, or the configured versions of |
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
196 ### config.h.in, paths.h.in, or Makefile.in, or TAGS. |
616 | 197 (cd src |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
198 echo " (If we can't link gmalloc.c, that's okay.)" |
616 | 199 ln [a-zA-Z]*.c ../${tempdir}/src |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
200 ## Might be a symlink to a file on another filesystem. |
1946 | 201 test -f ../${tempdir}/src/gmalloc.c || cp gmalloc.c ../${tempdir}/src |
616 | 202 ln [a-zA-Z]*.h ../${tempdir}/src |
203 ln [a-zA-Z]*.s ../${tempdir}/src | |
204 ln README Makefile.in ymakefile ChangeLog config.h.in paths.h.in \ | |
205 ../${tempdir}/src | |
206 ln .gdbinit .dbxinit ../${tempdir}/src | |
2927
9a270937e98c
* make-dist: Don't distribute precomp.com, compile.com, or
Jim Blandy <jimb@redhat.com>
parents:
2878
diff
changeset
|
207 ln *.opt vms-pp.trans ../${tempdir}/src |
616 | 208 cd ../${tempdir}/src |
999 | 209 rm -f config.h paths.h Makefile |
210 if [ -z "${newer}" ]; then | |
211 etags *.h *.c ../lisp/*.el | |
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
212 fi |
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
213 rm -f =* TAGS) |
616 | 214 |
2180
0b629ab3f06a
* make-dist: Distribute `src/bitmaps' too.
Jim Blandy <jimb@redhat.com>
parents:
1997
diff
changeset
|
215 echo "Making links to \`src/bitmaps'." |
0b629ab3f06a
* make-dist: Distribute `src/bitmaps' too.
Jim Blandy <jimb@redhat.com>
parents:
1997
diff
changeset
|
216 (cd src/bitmaps |
0b629ab3f06a
* make-dist: Distribute `src/bitmaps' too.
Jim Blandy <jimb@redhat.com>
parents:
1997
diff
changeset
|
217 ln README *.xbm ../../${tempdir}/src/bitmaps) |
0b629ab3f06a
* make-dist: Distribute `src/bitmaps' too.
Jim Blandy <jimb@redhat.com>
parents:
1997
diff
changeset
|
218 |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
219 echo "Making links to \`src/m'." |
616 | 220 (cd src/m |
1574
352988418dbd
* make-dist: Don't forget that the way to avoid filenames starting
Jim Blandy <jimb@redhat.com>
parents:
1560
diff
changeset
|
221 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/m) |
616 | 222 |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
223 echo "Making links to \`src/s'." |
616 | 224 (cd src/s |
1574
352988418dbd
* make-dist: Don't forget that the way to avoid filenames starting
Jim Blandy <jimb@redhat.com>
parents:
1560
diff
changeset
|
225 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s) |
616 | 226 |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
227 echo "Making links to \`lib-src'." |
616 | 228 (cd lib-src |
2971
fe78246d77fb
* make-dist: There aren't any *.com files in lib-src anymore.
Jim Blandy <jimb@redhat.com>
parents:
2959
diff
changeset
|
229 ln [a-zA-Z]*.[chy] [a-zA-Z]*.lex ../${tempdir}/lib-src |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
230 ln ChangeLog Makefile.in README testfile vcdiff rcs2log ../${tempdir}/lib-src |
2500
332457055981
* make-dist: Distribute lib-src/rcs-checkin.
Jim Blandy <jimb@redhat.com>
parents:
2487
diff
changeset
|
231 ln emacs.csh rcs-checkin ../${tempdir}/lib-src |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
232 cd ../${tempdir}/lib-src |
2263
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
233 rm -f getdate.c getdate.tab.c y.tab.c y.tab.h |
4b57c6f61299
Corrected typo, fixed it to discard = and TAGS files in some cases where it
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2254
diff
changeset
|
234 rm -f =* TAGS) |
616 | 235 |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
236 echo "Making links to \`oldXMenu'." |
616 | 237 (cd oldXMenu |
2832
47d8f937a4bc
* make-dist: Include any *.in files in oldXMenu in the distribution.
Jim Blandy <jimb@redhat.com>
parents:
2792
diff
changeset
|
238 ln *.c *.h *.in ../${tempdir}/oldXMenu |
2833
5e02025884d8
Don't distribute oldXMenu/Makefile.
Jim Blandy <jimb@redhat.com>
parents:
2832
diff
changeset
|
239 ln README Imakefile ChangeLog ../${tempdir}/oldXMenu |
2487
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
240 ln compile.com descrip.mms ../${tempdir}/oldXMenu) |
616 | 241 |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
242 echo "Making links to \`etc'." |
2487
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
243 ### Don't distribute = files, TAGS, DOC files, backups, autosaves, or |
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
244 ### tex litter. |
616 | 245 (cd etc |
2487
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
246 ln `ls -d * | grep -v 'RCS' | grep -v 'Old'` ../${tempdir}/etc |
616 | 247 cd ../${tempdir}/etc |
2487
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
248 rm -f DOC* *~ \#*\# *.dvi *.log *,v =* core |
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
249 rm -f TAGS) |
616 | 250 |
1792
1136bc94d196
* make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents:
1790
diff
changeset
|
251 echo "Making links to \`cpp'." |
1136bc94d196
* make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents:
1790
diff
changeset
|
252 (cd cpp |
1136bc94d196
* make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents:
1790
diff
changeset
|
253 ln cccp.c cexp.y Makefile README ../${tempdir}/cpp) |
1136bc94d196
* make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents:
1790
diff
changeset
|
254 |
2792
4dae9952e40f
Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents:
2684
diff
changeset
|
255 echo "Making links to \`info'." |
4dae9952e40f
Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents:
2684
diff
changeset
|
256 # Don't distribute backups or autosaves. |
4dae9952e40f
Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents:
2684
diff
changeset
|
257 (cd info |
4dae9952e40f
Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents:
2684
diff
changeset
|
258 ln [a-zA-Z]* ../${tempdir}/info |
4dae9952e40f
Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents:
2684
diff
changeset
|
259 cd ../${tempdir}/info |
4dae9952e40f
Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents:
2684
diff
changeset
|
260 # Avoid an error when expanding the wildcards later. |
4dae9952e40f
Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents:
2684
diff
changeset
|
261 ln emacs dummy~ ; ln emacs \#dummy\# |
4dae9952e40f
Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents:
2684
diff
changeset
|
262 rm -f *~ \#*\# core) |
1792
1136bc94d196
* make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents:
1790
diff
changeset
|
263 |
1136bc94d196
* make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents:
1790
diff
changeset
|
264 echo "Making links to \`man'." |
1136bc94d196
* make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents:
1790
diff
changeset
|
265 (cd man |
2971
fe78246d77fb
* make-dist: There aren't any *.com files in lib-src anymore.
Jim Blandy <jimb@redhat.com>
parents:
2959
diff
changeset
|
266 ln *.texinfo *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man |
1942
b403b27bc31c
* make-dist: Only copy gmalloc.c if we couldn't link it.
Jim Blandy <jimb@redhat.com>
parents:
1901
diff
changeset
|
267 test -f README && ln README ../${tempdir}/man |
b403b27bc31c
* make-dist: Only copy gmalloc.c if we couldn't link it.
Jim Blandy <jimb@redhat.com>
parents:
1901
diff
changeset
|
268 test -f Makefile && ln Makefile ../${tempdir}/man |
2676
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
269 ln ChangeLog split-man ../${tempdir}/man |
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
270 cp texinfo.tex texindex.c ../${tempdir}/man |
2684 | 271 cd ../${tempdir}/man |
2676
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
272 rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail |
8958f29e417c
Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents:
2625
diff
changeset
|
273 rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux) |
616 | 274 |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
275 echo "Making links to \`shortnames'." |
616 | 276 (cd shortnames |
277 ln *.c ../${tempdir}/shortnames | |
278 ln Makefile reserved special ../${tempdir}/shortnames) | |
279 | |
1364 | 280 echo "Making links to \`vms'." |
281 (cd vms | |
282 ln [0-9a-zA-Z]* ../${tempdir}/vms | |
283 cd ../${tempdir}/vms | |
284 rm -f *~) | |
285 | |
1700
4be274918c90
* make-dist: Make sure that the COPYING notices in each directory
Jim Blandy <jimb@redhat.com>
parents:
1688
diff
changeset
|
286 ### It would be nice if they could all be symlinks to etc's copy, but |
4be274918c90
* make-dist: Make sure that the COPYING notices in each directory
Jim Blandy <jimb@redhat.com>
parents:
1688
diff
changeset
|
287 ### you're not supposed to have any symlinks in distribution tar files. |
4be274918c90
* make-dist: Make sure that the COPYING notices in each directory
Jim Blandy <jimb@redhat.com>
parents:
1688
diff
changeset
|
288 echo "Making sure copying notices are all copies of \`etc/COPYING'." |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
289 rm -f ${tempdir}/etc/COPYING |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
290 cp etc/COPYING ${tempdir}/etc/COPYING |
1997
4b2a76f0d640
* make-dist: Don't try to copy the COPYING notice into
Jim Blandy <jimb@redhat.com>
parents:
1946
diff
changeset
|
291 # I think we're not going to distribute anything in external-lisp, so |
4b2a76f0d640
* make-dist: Don't try to copy the COPYING notice into
Jim Blandy <jimb@redhat.com>
parents:
1946
diff
changeset
|
292 # I've removed it from this list. |
4b2a76f0d640
* make-dist: Don't try to copy the COPYING notice into
Jim Blandy <jimb@redhat.com>
parents:
1946
diff
changeset
|
293 for subdir in lisp src lib-src info shortnames; do |
616 | 294 if [ -f ${tempdir}/${subdir}/COPYING ]; then |
295 rm ${tempdir}/${subdir}/COPYING | |
296 fi | |
1790
1be021d4d816
* make-dist: Remember that the authoritative COPYING notice is
Jim Blandy <jimb@redhat.com>
parents:
1700
diff
changeset
|
297 cp etc/COPYING ${tempdir}/${subdir} |
616 | 298 done |
299 | |
2986
3004f1336225
* make-dist: Break intra-tree links.
Jim Blandy <jimb@redhat.com>
parents:
2972
diff
changeset
|
300 #### Make sure that there aren't any hard links between files in the |
3004f1336225
* make-dist: Break intra-tree links.
Jim Blandy <jimb@redhat.com>
parents:
2972
diff
changeset
|
301 #### distribution; people with afs can't deal with that. Okay, |
3004f1336225
* make-dist: Break intra-tree links.
Jim Blandy <jimb@redhat.com>
parents:
2972
diff
changeset
|
302 #### actually we just re-copy anything with a link count greater |
3004f1336225
* make-dist: Break intra-tree links.
Jim Blandy <jimb@redhat.com>
parents:
2972
diff
changeset
|
303 #### than two. |
3004f1336225
* make-dist: Break intra-tree links.
Jim Blandy <jimb@redhat.com>
parents:
2972
diff
changeset
|
304 echo "Breaking intra-tree links." |
3022
9f168990e613
* make-dist: When breaking links, remove the link before moving
Jim Blandy <jimb@redhat.com>
parents:
2986
diff
changeset
|
305 find ${tempdir} ! -type d -links +2 \ |
9f168990e613
* make-dist: When breaking links, remove the link before moving
Jim Blandy <jimb@redhat.com>
parents:
2986
diff
changeset
|
306 -exec cp {} $$ \; -exec rm -f {} \; -exec mv $$ {} \; |
2986
3004f1336225
* make-dist: Break intra-tree links.
Jim Blandy <jimb@redhat.com>
parents:
2972
diff
changeset
|
307 |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
308 if [ "${newer}" ]; then |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
309 echo "Removing files older than $newer." |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
310 ## We remove .elc files unconditionally, on the theory that anyone picking |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
311 ## up an incremental distribution already has a running Emacs to byte-compile |
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
312 ## them with. |
992
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
313 find ${tempparent} \( -name '*.elc' -o ! -newer ${newer} \) -exec rm -f {} \; |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
314 fi |
144a9a018e7c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
315 |
621 | 316 if [ "${make_tar}" = yes ]; then |
2254
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
317 if [ "${default_gzip}" = "" ]; then |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
318 echo "Looking for gzip." |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
319 temppath=`echo $PATH | sed 's/^:/.:/ |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
320 s/::/:.:/g |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
321 s/:$/:./ |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
322 s/:/ /g'` |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
323 default_gzip=`( |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
324 for dir in ${temppath}; do |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
325 if [ -f ${dir}/gzip ]; then echo 'gzip --best'; exit 0; fi |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
326 done |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
327 echo compress |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
328 )` |
9f90d3406b46
Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents:
2253
diff
changeset
|
329 fi |
2487
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
330 case "${default_gzip}" in |
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
331 compress* ) gzip_extension=.Z ;; |
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
332 * ) gzip_extension=.z ;; |
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
333 esac |
621 | 334 echo "Creating tar file." |
2487
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
335 (cd ${tempparent} ; tar cvf - ${emacsname} ) \ |
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
336 | ${default_gzip} \ |
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
337 > ${emacsname}.tar${gzip_extension} |
621 | 338 fi |
616 | 339 |
621 | 340 if [ "${clean_up}" = yes ]; then |
616 | 341 echo "Cleaning up the staging directory." |
2487
7ba321c5b44d
* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents:
2368
diff
changeset
|
342 rm -rf ${tempparent} |
616 | 343 fi |
994
5b2a1922c4d5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
992
diff
changeset
|
344 |
1628
5ca8f0065e4e
* make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents:
1626
diff
changeset
|
345 ### make-dist ends here |