annotate make-dist @ 8240:363f719d47a5

(resize-minibuffer-setup): Copy post-command-hook when handling minibuffer windows in other frames, not just minibuffer-exclusive frames. Resize the minibuffer window/frame now, in case it has already been initialized with text.
author Noah Friedman <friedman@splode.com>
date Wed, 13 Jul 1994 17:19:23 +0000
parents 686198604dc7
children cdd772d2e59f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 progname="$0"
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
17 clean_up=yes
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
18 make_tar=yes
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
19 newer=""
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
20
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21 while [ $# -gt 0 ]; do
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
26 clean_up=no
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
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
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
31 "--no-tar" )
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
32 make_tar=no
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
33 clean_up=no
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 995
diff changeset
39 newer="$2"
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 995
diff changeset
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
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48 * )
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49 echo "${progname}: Unrecognized argument: $1" >&2
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50 exit 1
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
51 ;;
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52 esac
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
53 shift
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
54 done
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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
4168
c720be6f3fae Include src/gnu-hp300 in the dist.
Richard M. Stallman <rms@gnu.org>
parents: 4018
diff changeset
60 echo "distribution tree. cd to that directory and try again." >&2
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61 exit 1
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62 fi
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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.
7259
5a03fc943b38 Distribute config.bat.
Richard M. Stallman <rms@gnu.org>
parents: 6793
diff changeset
65 shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \
7755
6191acd134b6 (shortversion): Don't assume another period follows.
Richard M. Stallman <rms@gnu.org>
parents: 7315
diff changeset
66 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
7259
5a03fc943b38 Distribute config.bat.
Richard M. Stallman <rms@gnu.org>
parents: 6793
diff changeset
67 version=`grep 'defconst[ ]*emacs-version' lisp/version.el \
5a03fc943b38 Distribute config.bat.
Richard M. Stallman <rms@gnu.org>
parents: 6793
diff changeset
68 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
69 if [ ! "${version}" ]; then
7259
5a03fc943b38 Distribute config.bat.
Richard M. Stallman <rms@gnu.org>
parents: 6793
diff changeset
70 echo "${progname}: can't find current Emacs version in \`./lisp/version.el'." >&2
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
71 exit 1
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
72 fi
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
73
7755
6191acd134b6 (shortversion): Don't assume another period follows.
Richard M. Stallman <rms@gnu.org>
parents: 7315
diff changeset
74 echo $version and $shortversion
6191acd134b6 (shortversion): Don't assume another period follows.
Richard M. Stallman <rms@gnu.org>
parents: 7315
diff changeset
75
7259
5a03fc943b38 Distribute config.bat.
Richard M. Stallman <rms@gnu.org>
parents: 6793
diff changeset
76 if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then
2959
d3f30c15d39f * make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents: 2927
diff changeset
77 true
d3f30c15d39f * make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents: 2927
diff changeset
78 else
d3f30c15d39f * make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents: 2927
diff changeset
79 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
80 sleep 5
2959
d3f30c15d39f * make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents: 2927
diff changeset
81 fi
d3f30c15d39f * make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents: 2927
diff changeset
82
5206
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
83 ### Make sure we don't already have a directory emacs-${version}.
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
84
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
85 emacsname="emacs-${version}${new_extension}"
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
86
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
87 if [ -d ${emacsname} ]
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
88 then
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
89 echo Directory "${emacsname}" already exists >&2
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
90 exit 1
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
91 fi
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
92
1628
5ca8f0065e4e * make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents: 1626
diff changeset
93 ### Make sure the subdirectory is available.
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
94 tempparent="make-dist.tmp.$$"
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
95 if [ -d ${tempparent} ]; then
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
96 echo "${progname}: staging directory \`${tempparent}' already exists.
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
97 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
98 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
99 \`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
100 them, and try again." >&2
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
101 exit 1
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
102 fi
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
103
3144
7ecd0f1c7465 * make-dist: Check for .elc files with no corresponding .el file.
Jim Blandy <jimb@redhat.com>
parents: 3022
diff changeset
104 ### 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
105 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
106 ls -1 lisp/*.elc > /tmp/elc
3146
6bdedf954822 Report .elc bogosities more clearly.
Jim Blandy <jimb@redhat.com>
parents: 3144
diff changeset
107 bogosities="`comm -13 /tmp/el /tmp/elc`"
6bdedf954822 Report .elc bogosities more clearly.
Jim Blandy <jimb@redhat.com>
parents: 3144
diff changeset
108 if [ "${bogosities}" != "" ]; then
6bdedf954822 Report .elc bogosities more clearly.
Jim Blandy <jimb@redhat.com>
parents: 3144
diff changeset
109 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
110 echo "${bogosities}"
6bdedf954822 Report .elc bogosities more clearly.
Jim Blandy <jimb@redhat.com>
parents: 3144
diff changeset
111 fi
3155
b18adae0a424 Don't forget to remove temporary files.
Jim Blandy <jimb@redhat.com>
parents: 3146
diff changeset
112 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
113
3258
27b7aa2bcf21 * make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents: 3206
diff changeset
114 ### 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
115 if [ "x`ls -t configure configure.in | head -1`" != "xconfigure" ]; then
4740
f82d7536df7c Fixed naked backquotes in "echo" strings
Brian Fox <bfox@gnu.org>
parents: 4706
diff changeset
116 echo "\`./configure.in' seems to be newer than \`./configure.'" >&2
3258
27b7aa2bcf21 * make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents: 3206
diff changeset
117 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
118 autoconf
27b7aa2bcf21 * make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents: 3206
diff changeset
119 fi
27b7aa2bcf21 * make-dist: Rebuild configure if configure.in is newer.
Jim Blandy <jimb@redhat.com>
parents: 3206
diff changeset
120
3374
8e39495c5be4 Update getdate.c.
Richard M. Stallman <rms@gnu.org>
parents: 3258
diff changeset
121 ### Update getdate.c.
7259
5a03fc943b38 Distribute config.bat.
Richard M. Stallman <rms@gnu.org>
parents: 6793
diff changeset
122 (cd lib-src; make -f Makefile getdate.c YACC="bison -y")
3374
8e39495c5be4 Update getdate.c.
Richard M. Stallman <rms@gnu.org>
parents: 3258
diff changeset
123
8201
686198604dc7 Update finder-inf.el.
Richard M. Stallman <rms@gnu.org>
parents: 8178
diff changeset
124 echo "Updating finder-inf.el."
686198604dc7 Update finder-inf.el.
Richard M. Stallman <rms@gnu.org>
parents: 8178
diff changeset
125
686198604dc7 Update finder-inf.el.
Richard M. Stallman <rms@gnu.org>
parents: 8178
diff changeset
126 ### update finder-inf.el.
686198604dc7 Update finder-inf.el.
Richard M. Stallman <rms@gnu.org>
parents: 8178
diff changeset
127 (cd src; emacs -batch -l finder -f finder-compile-keywords)
686198604dc7 Update finder-inf.el.
Richard M. Stallman <rms@gnu.org>
parents: 8178
diff changeset
128
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
129 echo "Creating staging directory: \`${tempparent}'"
5206
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
130
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
131 mkdir ${tempparent}
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
132 tempdir="${tempparent}/${emacsname}"
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
133
1628
5ca8f0065e4e * make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents: 1626
diff changeset
134 ### 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
135 ### when the script is interrupted in mid-career.
994
5b2a1922c4d5 *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 992
diff changeset
136 if [ "${clean_up}" = yes ]; then
5b2a1922c4d5 *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 992
diff changeset
137 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
138 fi
5b2a1922c4d5 *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 992
diff changeset
139
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
140 echo "Creating top directory: \`${tempdir}'"
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
141 mkdir ${tempdir}
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
142
1628
5ca8f0065e4e * make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents: 1626
diff changeset
143 ### 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
144 ### 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
145 ### 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
146 ### 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
147 echo "Making links to top-level files."
7883
cba3121c44b7 Put ./BUGS into the distrib.
Richard M. Stallman <rms@gnu.org>
parents: 7755
diff changeset
148 ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README BUGS move-if-change ${tempdir}
5028
d7ca9a9d179e Use build-ins.in, not build-install.in.
Richard M. Stallman <rms@gnu.org>
parents: 4984
diff changeset
149 ln ChangeLog Makefile.in build-ins.in configure configure.in ${tempdir}
7259
5a03fc943b38 Distribute config.bat.
Richard M. Stallman <rms@gnu.org>
parents: 6793
diff changeset
150 ln config.bat make-dist vpath.sed ${tempdir}
5206
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
151 ### Copy these files; 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
152 cp config.sub ${tempdir}
3374
8e39495c5be4 Update getdate.c.
Richard M. Stallman <rms@gnu.org>
parents: 3258
diff changeset
153 cp config.guess ${tempdir}
5206
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
154 cp install.sh ${tempdir}
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
155
2959
d3f30c15d39f * make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents: 2927
diff changeset
156 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
157 (cd ${tempdir}
d3f30c15d39f * make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents: 2927
diff changeset
158 awk \
d3f30c15d39f * make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents: 2927
diff changeset
159 '$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
160 $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
161 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
162 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
163
d3f30c15d39f * make-dist: Check that the manual reflects the same version of
Jim Blandy <jimb@redhat.com>
parents: 2927
diff changeset
164
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
165 echo "Creating subdirectories."
1901
3be68763709f * make-dist: Don't distribute the external-lisp directory anymore.
Jim Blandy <jimb@redhat.com>
parents: 1823
diff changeset
166 # 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
167 # I've removed it from this list.
4018
43a30cb1b170 * make-dist (tempdir): Don't create lisp/forms-mode directory in
Jim Blandy <jimb@redhat.com>
parents: 3818
diff changeset
168 for subdir in lisp lisp/term site-lisp \
5629
27013efefaab Handle lwlib subdir like oldXMenu subdir.
Richard M. Stallman <rms@gnu.org>
parents: 5471
diff changeset
169 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \
5471
e034ade52ca0 (tempdir): Put subdir msdos into the distribution.
Richard M. Stallman <rms@gnu.org>
parents: 5322
diff changeset
170 etc lock cpp info man msdos shortnames vms; do
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
171 mkdir ${tempdir}/${subdir}
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
172 done
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
173
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
174 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
175 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el.
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
176 (cd lisp
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
177 ln [a-zA-Z]*.el ../${tempdir}/lisp
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
178 ln [a-zA-Z]*.elc ../${tempdir}/lisp
5033
b4ed97a59663 Don't put lisp/forms.README in the distribution.
Richard M. Stallman <rms@gnu.org>
parents: 5028
diff changeset
179 ln [a-zA-Z]*.dat ../${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
180 ## 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
181 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp
7315
836cfa8829a7 Distribute lisp/Makefile.
Richard M. Stallman <rms@gnu.org>
parents: 7259
diff changeset
182 ln ChangeLog Makefile ChangeLog.? README dired.todo ../${tempdir}/lisp
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
183 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
184 rm -f TAGS =*
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
185 rm -f site-init site-init.el site-init.elc
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 995
diff changeset
186 rm -f site-load site-load.el site-load.elc
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 995
diff changeset
187 rm -f default default.el default.elc)
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
188
2676
8958f29e417c Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents: 2625
diff changeset
189 #echo "Making links to \`lisp/calc-2.02'."
8958f29e417c Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents: 2625
diff changeset
190 #### Don't distribute =*.el files, TAGS or backups.
8958f29e417c Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents: 2625
diff changeset
191 #(cd lisp/calc-2.02
8958f29e417c Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents: 2625
diff changeset
192 # 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
193 # 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
194 # 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
195 # 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
196 # cd ../../${tempdir}/lisp/calc-2.02
8958f29e417c Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents: 2625
diff changeset
197 # rm -f *~ TAGS)
1792
1136bc94d196 * make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents: 1790
diff changeset
198
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
199 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
200 ### Don't distribute =*.el files or TAGS.
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
201 (cd lisp/term
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
202 ln [a-zA-Z]*.el ../../${tempdir}/lisp/term
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
203 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/term
3817
e65e33390314 * make-dist (lisp/term): This doesn't have a ChangeLog anymore.
Jim Blandy <jimb@redhat.com>
parents: 3564
diff changeset
204 ln README ../../${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
205 rm -f =* TAGS)
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
206
1901
3be68763709f * make-dist: Don't distribute the external-lisp directory anymore.
Jim Blandy <jimb@redhat.com>
parents: 1823
diff changeset
207 ### 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
208 ### ### 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
209 ### (cd external-lisp
3be68763709f * make-dist: Don't distribute the external-lisp directory anymore.
Jim Blandy <jimb@redhat.com>
parents: 1823
diff changeset
210 ### 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
211 ### 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
212 ### 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
213 ### rm -f =* TAGS)
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
214
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
215 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
216 ### Don't distribute =*.[ch] files, or the configured versions of
4795
6e068e4635e0 Remove `src/ymakefile', add `src/Makefile.in.in'.
Brian Fox <bfox@gnu.org>
parents: 4740
diff changeset
217 ### config.h.in, paths.h.in, or Makefile.in.in, or TAGS.
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
218 (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
219 echo " (If we can't link gmalloc.c, that's okay.)"
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
220 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
221 ## Might be a symlink to a file on another filesystem.
1946
05297a5a8238 Fix the fix.
Jim Blandy <jimb@redhat.com>
parents: 1942
diff changeset
222 test -f ../${tempdir}/src/gmalloc.c || cp gmalloc.c ../${tempdir}/src
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
223 ln [a-zA-Z]*.h ../${tempdir}/src
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
224 ln [a-zA-Z]*.s ../${tempdir}/src
5713
76d9b1408e5c Distribute {src,lisp}/ChangeLog.? instead of {src,lisp}/OChangeLog.
Roland McGrath <roland@gnu.org>
parents: 5629
diff changeset
225 ln README Makefile.in.in ChangeLog ChangeLog.? config.h.in paths.h.in \
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
226 ../${tempdir}/src
4489
f1fa60176c8d (src): Don't put gnu-hp300 in dist.
Richard M. Stallman <rms@gnu.org>
parents: 4318
diff changeset
227 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
228 ln *.opt vms-pp.trans ../${tempdir}/src
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
229 cd ../${tempdir}/src
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 995
diff changeset
230 rm -f config.h paths.h Makefile
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
231 rm -f =* TAGS)
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
232
2180
0b629ab3f06a * make-dist: Distribute `src/bitmaps' too.
Jim Blandy <jimb@redhat.com>
parents: 1997
diff changeset
233 echo "Making links to \`src/bitmaps'."
0b629ab3f06a * make-dist: Distribute `src/bitmaps' too.
Jim Blandy <jimb@redhat.com>
parents: 1997
diff changeset
234 (cd src/bitmaps
0b629ab3f06a * make-dist: Distribute `src/bitmaps' too.
Jim Blandy <jimb@redhat.com>
parents: 1997
diff changeset
235 ln README *.xbm ../../${tempdir}/src/bitmaps)
0b629ab3f06a * make-dist: Distribute `src/bitmaps' too.
Jim Blandy <jimb@redhat.com>
parents: 1997
diff changeset
236
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
237 echo "Making links to \`src/m'."
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
238 (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
239 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/m)
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
240
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
241 echo "Making links to \`src/s'."
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
242 (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
243 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s)
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
244
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
245 echo "Making links to \`lib-src'."
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
246 (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
247 ln [a-zA-Z]*.[chy] [a-zA-Z]*.lex ../${tempdir}/lib-src
7259
5a03fc943b38 Distribute config.bat.
Richard M. Stallman <rms@gnu.org>
parents: 6793
diff changeset
248 ln ChangeLog Makefile.in.in README testfile vcdiff ../${tempdir}/lib-src
5a03fc943b38 Distribute config.bat.
Richard M. Stallman <rms@gnu.org>
parents: 6793
diff changeset
249 ln emacs.csh rcs2log rcs-checkin ../${tempdir}/lib-src
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
250 cd ../${tempdir}/lib-src
4644
e19a64761187 Include getdate.c in distribution.
Richard M. Stallman <rms@gnu.org>
parents: 4492
diff changeset
251 rm -f getdate.tab.c y.tab.c y.tab.h
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
252 rm -f =* TAGS)
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
253
5471
e034ade52ca0 (tempdir): Put subdir msdos into the distribution.
Richard M. Stallman <rms@gnu.org>
parents: 5322
diff changeset
254 echo "Making links to \`msdos'."
e034ade52ca0 (tempdir): Put subdir msdos into the distribution.
Richard M. Stallman <rms@gnu.org>
parents: 5322
diff changeset
255 (cd msdos
e034ade52ca0 (tempdir): Put subdir msdos into the distribution.
Richard M. Stallman <rms@gnu.org>
parents: 5322
diff changeset
256 ln ChangeLog emacs.ico emacs.pif ../${tempdir}/msdos
8178
bd5b4c5dda7f (msdos): Include sed4.inp in dist.
Richard M. Stallman <rms@gnu.org>
parents: 7883
diff changeset
257 ln mainmake sed[1234].inp ../${tempdir}/msdos
5471
e034ade52ca0 (tempdir): Put subdir msdos into the distribution.
Richard M. Stallman <rms@gnu.org>
parents: 5322
diff changeset
258 cd ../${tempdir}/msdos
e034ade52ca0 (tempdir): Put subdir msdos into the distribution.
Richard M. Stallman <rms@gnu.org>
parents: 5322
diff changeset
259 rm -f =*)
e034ade52ca0 (tempdir): Put subdir msdos into the distribution.
Richard M. Stallman <rms@gnu.org>
parents: 5322
diff changeset
260
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
261 echo "Making links to \`oldXMenu'."
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
262 (cd oldXMenu
2832
47d8f937a4bc * make-dist: Include any *.in files in oldXMenu in the distribution.
Jim Blandy <jimb@redhat.com>
parents: 2792
diff changeset
263 ln *.c *.h *.in ../${tempdir}/oldXMenu
2833
5e02025884d8 Don't distribute oldXMenu/Makefile.
Jim Blandy <jimb@redhat.com>
parents: 2832
diff changeset
264 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
265 ln compile.com descrip.mms ../${tempdir}/oldXMenu)
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
266
5629
27013efefaab Handle lwlib subdir like oldXMenu subdir.
Richard M. Stallman <rms@gnu.org>
parents: 5471
diff changeset
267 echo "Making links to \`lwlib'."
27013efefaab Handle lwlib subdir like oldXMenu subdir.
Richard M. Stallman <rms@gnu.org>
parents: 5471
diff changeset
268 (cd lwlib
27013efefaab Handle lwlib subdir like oldXMenu subdir.
Richard M. Stallman <rms@gnu.org>
parents: 5471
diff changeset
269 ln *.c *.h *.in ../${tempdir}/lwlib
27013efefaab Handle lwlib subdir like oldXMenu subdir.
Richard M. Stallman <rms@gnu.org>
parents: 5471
diff changeset
270 ln README Imakefile ChangeLog ../${tempdir}/lwlib)
27013efefaab Handle lwlib subdir like oldXMenu subdir.
Richard M. Stallman <rms@gnu.org>
parents: 5471
diff changeset
271
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
272 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
273 ### 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
274 ### tex litter.
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
275 (cd etc
2487
7ba321c5b44d * make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents: 2368
diff changeset
276 ln `ls -d * | grep -v 'RCS' | grep -v 'Old'` ../${tempdir}/etc
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
277 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
278 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
279 rm -f TAGS)
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
280
1792
1136bc94d196 * make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents: 1790
diff changeset
281 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
282 (cd cpp
1136bc94d196 * make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents: 1790
diff changeset
283 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
284
2792
4dae9952e40f Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents: 2684
diff changeset
285 echo "Making links to \`info'."
4dae9952e40f Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents: 2684
diff changeset
286 # Don't distribute backups or autosaves.
4dae9952e40f Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents: 2684
diff changeset
287 (cd info
4dae9952e40f Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents: 2684
diff changeset
288 ln [a-zA-Z]* ../${tempdir}/info
4dae9952e40f Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents: 2684
diff changeset
289 cd ../${tempdir}/info
4dae9952e40f Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents: 2684
diff changeset
290 # Avoid an error when expanding the wildcards later.
4dae9952e40f Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents: 2684
diff changeset
291 ln emacs dummy~ ; ln emacs \#dummy\#
4dae9952e40f Make links in info subdir.
Richard M. Stallman <rms@gnu.org>
parents: 2684
diff changeset
292 rm -f *~ \#*\# core)
1792
1136bc94d196 * make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents: 1790
diff changeset
293
1136bc94d196 * make-dist: Include `./lisp/calc-2.02' in the distribution.
Jim Blandy <jimb@redhat.com>
parents: 1790
diff changeset
294 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
295 (cd man
4970
f27254ec443e Don't try to link *.texinfo--there are none now.
Richard M. Stallman <rms@gnu.org>
parents: 4795
diff changeset
296 ln *.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
297 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
298 test -f Makefile && ln Makefile ../${tempdir}/man
2676
8958f29e417c Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents: 2625
diff changeset
299 ln ChangeLog split-man ../${tempdir}/man
5322
f2e4b574a4e9 Put man/getopt.c in the dist.
Richard M. Stallman <rms@gnu.org>
parents: 5206
diff changeset
300 cp texinfo.tex texindex.c getopt.c ../${tempdir}/man
2684
e0f465034c62 Typo in last change.
Richard M. Stallman <rms@gnu.org>
parents: 2676
diff changeset
301 cd ../${tempdir}/man
2676
8958f29e417c Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents: 2625
diff changeset
302 rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail
8958f29e417c Don't include calc directory.
Richard M. Stallman <rms@gnu.org>
parents: 2625
diff changeset
303 rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux)
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
304
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
305 echo "Making links to \`shortnames'."
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
306 (cd shortnames
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
307 ln *.c ../${tempdir}/shortnames
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
308 ln Makefile reserved special ../${tempdir}/shortnames)
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
309
1364
313f56268d18 entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1112
diff changeset
310 echo "Making links to \`vms'."
313f56268d18 entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1112
diff changeset
311 (cd vms
313f56268d18 entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1112
diff changeset
312 ln [0-9a-zA-Z]* ../${tempdir}/vms
313f56268d18 entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1112
diff changeset
313 cd ../${tempdir}/vms
313f56268d18 entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1112
diff changeset
314 rm -f *~)
313f56268d18 entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1112
diff changeset
315
1700
4be274918c90 * make-dist: Make sure that the COPYING notices in each directory
Jim Blandy <jimb@redhat.com>
parents: 1688
diff changeset
316 ### 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
317 ### 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
318 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
319 rm -f ${tempdir}/etc/COPYING
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
320 cp etc/COPYING ${tempdir}/etc/COPYING
5471
e034ade52ca0 (tempdir): Put subdir msdos into the distribution.
Richard M. Stallman <rms@gnu.org>
parents: 5322
diff changeset
321 for subdir in lisp src lib-src info shortnames msdos; do
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
322 if [ -f ${tempdir}/${subdir}/COPYING ]; then
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
323 rm ${tempdir}/${subdir}/COPYING
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
324 fi
1790
1be021d4d816 * make-dist: Remember that the authoritative COPYING notice is
Jim Blandy <jimb@redhat.com>
parents: 1700
diff changeset
325 cp etc/COPYING ${tempdir}/${subdir}
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
326 done
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
327
2986
3004f1336225 * make-dist: Break intra-tree links.
Jim Blandy <jimb@redhat.com>
parents: 2972
diff changeset
328 #### 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
329 #### 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
330 #### 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
331 #### than two.
3004f1336225 * make-dist: Break intra-tree links.
Jim Blandy <jimb@redhat.com>
parents: 2972
diff changeset
332 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
333 find ${tempdir} ! -type d -links +2 \
5184
9f18f50000e5 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5033
diff changeset
334 -exec cp -p {} $$ \; -exec rm -f {} \; -exec mv $$ {} \;
2986
3004f1336225 * make-dist: Break intra-tree links.
Jim Blandy <jimb@redhat.com>
parents: 2972
diff changeset
335
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
336 if [ "${newer}" ]; then
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
337 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
338 ## 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
339 ## 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
340 ## them with.
992
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
341 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
342 fi
144a9a018e7c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 621
diff changeset
343
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
344 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
345 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
346 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
347 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
348 s/::/:.:/g
9f90d3406b46 Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents: 2253
diff changeset
349 s/:$/:./
9f90d3406b46 Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents: 2253
diff changeset
350 s/:/ /g'`
9f90d3406b46 Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents: 2253
diff changeset
351 default_gzip=`(
9f90d3406b46 Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents: 2253
diff changeset
352 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
353 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
354 done
9f90d3406b46 Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents: 2253
diff changeset
355 echo compress
9f90d3406b46 Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents: 2253
diff changeset
356 )`
9f90d3406b46 Add a --compress option to force make-dist to use compress.
Jim Blandy <jimb@redhat.com>
parents: 2253
diff changeset
357 fi
2487
7ba321c5b44d * make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents: 2368
diff changeset
358 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
359 compress* ) gzip_extension=.Z ;;
3818
ec5cc4995395 * make-dist: If using gzip, create distribution with '.gz' extension.
Jim Blandy <jimb@redhat.com>
parents: 3817
diff changeset
360 * ) gzip_extension=.gz ;;
2487
7ba321c5b44d * make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents: 2368
diff changeset
361 esac
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
362 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
363 (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
364 | ${default_gzip} \
7ba321c5b44d * make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms.
Jim Blandy <jimb@redhat.com>
parents: 2368
diff changeset
365 > ${emacsname}.tar${gzip_extension}
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
366 fi
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
367
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
368 if [ "${clean_up}" = yes ]; then
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
369 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
370 rm -rf ${tempparent}
5206
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
371 else
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
372 (cd ${tempparent}; mv ${emacsname} ..)
810820d03e24 When breaking links, use cp -p.
Richard M. Stallman <rms@gnu.org>
parents: 5184
diff changeset
373 rm -rf ${tempparent}
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
374 fi
994
5b2a1922c4d5 *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 992
diff changeset
375
1628
5ca8f0065e4e * make-dist: Explain what's going on if config.sub and gmalloc.c
Jim Blandy <jimb@redhat.com>
parents: 1626
diff changeset
376 ### make-dist ends here