Mercurial > emacs
comparison make-dist @ 999:d8d503897aa5
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Wed, 19 Aug 1992 03:54:51 +0000 |
parents | 9cb2c2723b73 |
children | 1dba066c1e0a |
comparison
equal
deleted
inserted
replaced
998:61c6983219ff | 999:d8d503897aa5 |
---|---|
34 ;; | 34 ;; |
35 # This option tells make-dist to make the distribution normally, then | 35 # This option tells make-dist to make the distribution normally, then |
36 # remove all files newer than the given timestamp file. This is useful | 36 # remove all files newer than the given timestamp file. This is useful |
37 # for creating incremental or patch distributions | 37 # for creating incremental or patch distributions |
38 "--newer") | 38 "--newer") |
39 newer=$2 | 39 newer="$2" |
40 new=.new | 40 new_extension=".new" |
41 shift | 41 shift |
42 ;; | 42 ;; |
43 * ) | 43 * ) |
44 echo "${progname}: Unrecognized argument: $1" >&2 | 44 echo "${progname}: Unrecognized argument: $1" >&2 |
45 exit 1 | 45 exit 1 |
75 exit 1 | 75 exit 1 |
76 fi | 76 fi |
77 | 77 |
78 echo "Creating staging directory: \`${tempparent}'" | 78 echo "Creating staging directory: \`${tempparent}'" |
79 mkdir ${tempparent} | 79 mkdir ${tempparent} |
80 emacsname="emacs-${version}${new}" | 80 emacsname="emacs-${version}${new_extension}" |
81 tempdir="${tempparent}/${emacsname}" | 81 tempdir="${tempparent}/${emacsname}" |
82 | 82 |
83 # This trap ensures that the staging directory will be cleaned up even | 83 # This trap ensures that the staging directory will be cleaned up even |
84 # when the script is interrupted in mid-career. | 84 # when the script is interrupted in mid-career. |
85 if [ "${clean_up}" = yes ]; then | 85 if [ "${clean_up}" = yes ]; then |
103 etc lock arch-lib cpp info man shortnames; do | 103 etc lock arch-lib cpp info man shortnames; do |
104 mkdir ${tempdir}/${subdir} | 104 mkdir ${tempdir}/${subdir} |
105 done | 105 done |
106 | 106 |
107 echo "Making links to \`lisp'." | 107 echo "Making links to \`lisp'." |
108 # Don't distribute =*.el files, site-init.el, or site-load.el. | 108 # Don't distribute =*.el files, site-init.el, site-load.el, or default.el. |
109 (cd lisp | 109 (cd lisp |
110 ln [a-zA-Z]*.el ../${tempdir}/lisp | 110 ln [a-zA-Z]*.el ../${tempdir}/lisp |
111 ln [a-zA-Z]*.elc ../${tempdir}/lisp | 111 ln [a-zA-Z]*.elc ../${tempdir}/lisp |
112 # simula.el doesn't keep abbreviations in simula.defns any more. | 112 # simula.el doesn't keep abbreviations in simula.defns any more. |
113 # ln [a-zA-Z]*.defns ../${tempdir}/lisp | 113 # ln [a-zA-Z]*.defns ../${tempdir}/lisp |
114 ln ChangeLog README ../${tempdir}/lisp | 114 ln ChangeLog README ../${tempdir}/lisp |
115 cd ../${tempdir}/lisp | 115 cd ../${tempdir}/lisp |
116 rm -f site-init site-init.el site-init.elc | 116 rm -f site-init site-init.el site-init.elc |
117 rm -f site-load site-load.el site-load.elc) | 117 rm -f site-load site-load.el site-load.elc |
118 rm -f default default.el default.elc) | |
118 | 119 |
119 echo "Making links to \`lisp/term'." | 120 echo "Making links to \`lisp/term'." |
120 # Don't distribute =*.el files. | 121 # Don't distribute =*.el files. |
121 (cd lisp/term | 122 (cd lisp/term |
122 ln [a-zA-Z]*.el ../../${tempdir}/lisp/term | 123 ln [a-zA-Z]*.el ../../${tempdir}/lisp/term |
140 ln README Makefile.in ymakefile ChangeLog config.h.in paths.h.in \ | 141 ln README Makefile.in ymakefile ChangeLog config.h.in paths.h.in \ |
141 ../${tempdir}/src | 142 ../${tempdir}/src |
142 ln .gdbinit .dbxinit ../${tempdir}/src | 143 ln .gdbinit .dbxinit ../${tempdir}/src |
143 ln *.com *.opt vms-pp.trans vmsbuild ../${tempdir}/src | 144 ln *.com *.opt vms-pp.trans vmsbuild ../${tempdir}/src |
144 cd ../${tempdir}/src | 145 cd ../${tempdir}/src |
145 rm -f config.h paths.h Makefile) | 146 rm -f config.h paths.h Makefile |
147 if [ -z "${newer}" ]; then | |
148 etags *.h *.c ../lisp/*.el | |
149 fi) | |
146 | 150 |
147 echo "Making links to \`src/m'." | 151 echo "Making links to \`src/m'." |
148 (cd src/m | 152 (cd src/m |
149 ln README *.h ../../${tempdir}/src/m) | 153 ln README *.h ../../${tempdir}/src/m) |
150 | 154 |
163 (cd oldXMenu | 167 (cd oldXMenu |
164 ln *.c *.h ../${tempdir}/oldXMenu | 168 ln *.c *.h ../${tempdir}/oldXMenu |
165 ln README Makefile Imakefile ChangeLog ../${tempdir}/oldXMenu) | 169 ln README Makefile Imakefile ChangeLog ../${tempdir}/oldXMenu) |
166 | 170 |
167 echo "Making links to \`etc'." | 171 echo "Making links to \`etc'." |
168 # Don't distribute TAGS, DOC files, backups, autosaves, or tex litter. | 172 # Don't distribute DOC files, backups, autosaves, or tex litter. |
169 (cd etc | 173 (cd etc |
170 ln [0-9a-zA-Z]* ../${tempdir}/etc | 174 ln [0-9a-zA-Z]* ../${tempdir}/etc |
171 cd ../${tempdir}/etc | 175 cd ../${tempdir}/etc |
172 # Avoid an error when expanding the wildcards later. | 176 # Avoid an error when expanding the wildcards later. |
173 for dummy in DOC-dummy dummy~ \#dummy\# dummy.dvi dummy.log; do | 177 for dummy in DOC-dummy dummy~ \#dummy\# dummy.dvi dummy.log; do |
174 ln MACHINES ${dummy} | 178 ln MACHINES ${dummy} |
175 done | 179 done |
176 rm -f TAGS DOC* *~ \#*\# *.dvi *.log core) | 180 rm -f DOC* *~ \#*\# *.dvi *.log core) |
177 | 181 |
178 # For now, we comment these out, since I'm not changing them any. | 182 # For now, we comment these out, since I'm not changing them any. |
179 #!! echo "Making links to \`cpp'." | 183 #!! echo "Making links to \`cpp'." |
180 #!! (cd cpp | 184 #!! (cd cpp |
181 #!! ln cccp.c cexp.y Makefile README ../${tempdir}/cpp) | 185 #!! ln cccp.c cexp.y Makefile README ../${tempdir}/cpp) |