Mercurial > emacs
comparison make-dist @ 17603:892cc20c7d91
Handle all subdirs of `lisp' uniformly.
Don't handle `term' and `language' specially.
Clear out umask at the beginning.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 30 Apr 1997 17:30:47 +0000 |
parents | 55e7f9ff6456 |
children | 09cdafe1339f |
comparison
equal
deleted
inserted
replaced
17602:39b58a508be6 | 17603:892cc20c7d91 |
---|---|
30 ### Exit if a command fails. | 30 ### Exit if a command fails. |
31 ### set -e | 31 ### set -e |
32 | 32 |
33 ### Print out each line we read, for debugging's sake. | 33 ### Print out each line we read, for debugging's sake. |
34 ### set -v | 34 ### set -v |
35 | |
36 ## Don't protect any files. | |
37 umask 0 | |
35 | 38 |
36 update=yes | 39 update=yes |
37 clean_up=no | 40 clean_up=no |
38 make_tar=no | 41 make_tar=no |
39 newer="" | 42 newer="" |
170 | 173 |
171 (cd man; make info) | 174 (cd man; make info) |
172 | 175 |
173 echo "Updating finder-inf.el" | 176 echo "Updating finder-inf.el" |
174 | 177 |
175 (cd lisp; make finder-inf.el)) | 178 (cd lisp; make finder-inf.el) |
176 | 179 |
177 echo "Recompiling Lisp files" | 180 echo "Recompiling Lisp files" |
178 | 181 |
179 $EMACS -batch -f batch-byte-recompile-directory lisp | 182 $EMACS -batch -f batch-byte-recompile-directory lisp |
180 | 183 |
227 version=${version} README > tmp.README | 230 version=${version} README > tmp.README |
228 mv tmp.README README) | 231 mv tmp.README README) |
229 | 232 |
230 | 233 |
231 echo "Creating subdirectories" | 234 echo "Creating subdirectories" |
232 for subdir in lisp lisp/term lisp/language site-lisp \ | 235 for subdir in lisp site-lisp \ |
233 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \ | 236 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \ |
234 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet \ | 237 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet \ |
235 etc etc/e lock cpp info man msdos vms; do | 238 etc etc/e lock cpp info man msdos vms; do |
236 mkdir ${tempdir}/${subdir} | 239 mkdir ${tempdir}/${subdir} |
237 done | 240 done |
238 | 241 |
239 echo "Making links to \`lisp'" | 242 echo "Making links to \`lisp' and its subdirectories" |
240 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el. | 243 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el. |
241 (cd lisp | 244 (cd lisp |
242 ln [a-zA-Z]*.el ../${tempdir}/lisp | 245 ln [a-zA-Z]*.el ../${tempdir}/lisp |
243 ln [a-zA-Z]*.elc ../${tempdir}/lisp | 246 ln [a-zA-Z]*.elc ../${tempdir}/lisp |
244 ln [a-zA-Z]*.dat ../${tempdir}/lisp | 247 ln [a-zA-Z]*.dat ../${tempdir}/lisp |
245 ## simula.el doesn't keep abbreviations in simula.defns any more. | 248 ## simula.el doesn't keep abbreviations in simula.defns any more. |
246 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp | 249 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp |
247 ln ChangeLog Makefile makefile.nt ChangeLog.? README ../${tempdir}/lisp | 250 ln ChangeLog Makefile makefile.nt ChangeLog.? README ../${tempdir}/lisp |
248 cd ../${tempdir}/lisp | 251 (cd ../${tempdir}/lisp |
249 rm -f TAGS =* | 252 rm -f TAGS =* |
250 rm -f subdirs.el | 253 rm -f site-init site-init.el site-init.elc |
251 rm -f site-init site-init.el site-init.elc | 254 rm -f site-load site-load.el site-load.elc |
252 rm -f site-load site-load.el site-load.elc | 255 rm -f site-start site-start.el site-start.elc |
253 rm -f site-start site-start.el site-start.elc | 256 rm -f default default.el default.elc |
254 rm -f default default.el default.elc) | 257 ) |
255 | 258 |
256 #echo "Making links to \`lisp/calc-2.02'" | 259 ## Find all subdirs of lisp dir |
257 #### Don't distribute =*.el files, TAGS or backups. | 260 for file in `find . -type d -print`; do |
258 #(cd lisp/calc-2.02 | 261 case $file in |
259 # ln [a-zA-Z]*.el ../../${tempdir}/lisp/calc-2.02 | 262 . | .. | */Old | */RCS) |
260 # ln [a-zA-Z]*.elc ../../${tempdir}/lisp/calc-2.02 | 263 ;; |
261 # ln calc.info* calc.texinfo calc-refcard.* ../../${tempdir}/lisp/calc-2.02 | 264 *) |
262 # ln INSTALL Makefile README README.prev ../../${tempdir}/lisp/calc-2.02 | 265 if [ -d $file ]; then |
263 # cd ../../${tempdir}/lisp/calc-2.02 | 266 subdirs="$file $subdirs" |
264 # rm -f *~ TAGS) | 267 fi |
265 | 268 ;; |
266 echo "Making links to \`lisp/term'" | 269 esac |
267 ### Don't distribute =*.el files or TAGS. | 270 done |
268 (cd lisp/term | 271 |
269 ln [a-zA-Z]*.el ../../${tempdir}/lisp/term | 272 for file in $subdirs; do |
270 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/term | 273 echo " lisp/$file" |
271 ln README ../../${tempdir}/lisp/term | 274 mkdir ../${tempdir}/lisp/$file |
272 rm -f =* TAGS) | 275 ln $file/[a-zA-Z]*.el ../${tempdir}/lisp/$file |
273 | 276 ln $file/[a-zA-Z]*.elc ../${tempdir}/lisp/$file |
274 echo "Making links to \`lisp/term'" | 277 if [ -f $file/README ]; then |
275 ### Don't distribute =*.el files or TAGS. | 278 ln $file/README ../${tempdir}/lisp/$file |
276 (cd lisp/language | 279 fi |
277 ln [a-zA-Z]*.el ../../${tempdir}/lisp/language | 280 rm -f $file/=* $file/TAGS |
278 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/language | 281 done ) |
279 rm -f =* TAGS) | |
280 | 282 |
281 echo "Making links to \`src'" | 283 echo "Making links to \`src'" |
282 ### Don't distribute =*.[ch] files, or the configured versions of | 284 ### Don't distribute =*.[ch] files, or the configured versions of |
283 ### config.in, paths.in, or Makefile.in, or TAGS. | 285 ### config.in, paths.in, or Makefile.in, or TAGS. |
284 (cd src | 286 (cd src |