aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-04-30 17:30:47 +0000
committerRichard M. Stallman1997-04-30 17:30:47 +0000
commit67ffab69bd46f4870f1b01c771cb9f5b0293661a (patch)
tree5cbefc547c20cfdcacd7c82e21471a76e8161e7f
parente0903a92eaaf1fbac37eeb92e4c44c35e9f3ea17 (diff)
downloademacs-67ffab69bd46f4870f1b01c771cb9f5b0293661a.tar.gz
emacs-67ffab69bd46f4870f1b01c771cb9f5b0293661a.zip
Handle all subdirs of `lisp' uniformly.
Don't handle `term' and `language' specially. Clear out umask at the beginning.
-rwxr-xr-xmake-dist70
1 files changed, 36 insertions, 34 deletions
diff --git a/make-dist b/make-dist
index d219fb58ce5..73c320c2865 100755
--- a/make-dist
+++ b/make-dist
@@ -33,6 +33,9 @@ progname="$0"
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 35
36## Don't protect any files.
37umask 0
38
36update=yes 39update=yes
37clean_up=no 40clean_up=no
38make_tar=no 41make_tar=no
@@ -172,7 +175,7 @@ then
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
@@ -229,14 +232,14 @@ echo "Updating version number in README"
229 232
230 233
231echo "Creating subdirectories" 234echo "Creating subdirectories"
232for subdir in lisp lisp/term lisp/language site-lisp \ 235for 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}
237done 240done
238 241
239echo "Making links to \`lisp'" 242echo "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
@@ -245,38 +248,37 @@ echo "Making links to \`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 ;;
266echo "Making links to \`lisp/term'" 269 esac
267### Don't distribute =*.el files or TAGS. 270 done
268(cd lisp/term
269 ln [a-zA-Z]*.el ../../${tempdir}/lisp/term
270 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/term
271 ln README ../../${tempdir}/lisp/term
272 rm -f =* TAGS)
273 271
274echo "Making links to \`lisp/term'" 272 for file in $subdirs; do
275### Don't distribute =*.el files or TAGS. 273 echo " lisp/$file"
276(cd lisp/language 274 mkdir ../${tempdir}/lisp/$file
277 ln [a-zA-Z]*.el ../../${tempdir}/lisp/language 275 ln $file/[a-zA-Z]*.el ../${tempdir}/lisp/$file
278 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/language 276 ln $file/[a-zA-Z]*.elc ../${tempdir}/lisp/$file
279 rm -f =* TAGS) 277 if [ -f $file/README ]; then
278 ln $file/README ../${tempdir}/lisp/$file
279 fi
280 rm -f $file/=* $file/TAGS
281 done )
280 282
281echo "Making links to \`src'" 283echo "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