Mercurial > emacs
comparison make-dist @ 110945:b7594d447a6e
* make-dist: Simplify creation of lisp/MANIFEST.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Mon, 11 Oct 2010 23:38:34 -0700 |
parents | 478c8c6c2ebc |
children | 267fc9b74892 |
comparison
equal
deleted
inserted
replaced
110944:478c8c6c2ebc | 110945:b7594d447a6e |
---|---|
277 | 277 |
278 echo "Recompiling Lisp files" | 278 echo "Recompiling Lisp files" |
279 $EMACS -batch -f batch-byte-recompile-directory lisp leim | 279 $EMACS -batch -f batch-byte-recompile-directory lisp leim |
280 fi | 280 fi |
281 | 281 |
282 ## What is this file for? It goes in srcdir, not the tarfile. | |
283 ## Why does it exclude term/ ? | |
282 echo "Making lisp/MANIFEST" | 284 echo "Making lisp/MANIFEST" |
283 | 285 |
284 (cd lisp; | 286 files=`find lisp -type f -name '*.el'` |
285 files=`echo [!=]*.el | sed -e 's/ subdirs.el / /' -e 's/ default.el / /'` | 287 for file in $files; do |
286 for dir in [!=]*; do | 288 case "$file" in |
287 if [ -d $dir ] && [ $dir != term ] | 289 */subdirs.el|*/default.el|*/loaddefs.el|*/term/*) continue ;; |
288 then | 290 esac |
289 echo $dir | 291 sed -n 's/^;;; //p; q' $file |
290 thisdir=`echo $dir/[!=]*.el | sed -e 's/ subdirs.el / /'` | 292 done | sort > lisp/MANIFEST |
291 files="$files $thisdir" | |
292 fi | |
293 done | |
294 for file in $files | |
295 do sed -n 's/^;;; //p; q' $file | |
296 done | sort > MANIFEST) | |
297 | 293 |
298 echo "Creating staging directory: \`${tempparent}'" | 294 echo "Creating staging directory: \`${tempparent}'" |
299 | 295 |
300 mkdir ${tempparent} | 296 mkdir ${tempparent} |
301 tempdir="${tempparent}/${emacsname}" | 297 tempdir="${tempparent}/${emacsname}" |
317 ln INSTALL README BUGS move-if-change ${tempdir} | 313 ln INSTALL README BUGS move-if-change ${tempdir} |
318 ln ChangeLog Makefile.in configure configure.in ${tempdir} | 314 ln ChangeLog Makefile.in configure configure.in ${tempdir} |
319 ln config.bat make-dist update-subdirs vpath.sed .dir-locals.el ${tempdir} | 315 ln config.bat make-dist update-subdirs vpath.sed .dir-locals.el ${tempdir} |
320 ln mkinstalldirs config.sub config.guess install-sh ${tempdir} | 316 ln mkinstalldirs config.sub config.guess install-sh ${tempdir} |
321 | 317 |
318 ## FIXME why do we bother doing this? set-version in admin/admin.el | |
319 ## does this, and more besides. | |
322 echo "Updating version number in README" | 320 echo "Updating version number in README" |
323 (cd ${tempdir} | 321 (cd ${tempdir} |
324 awk \ | 322 awk \ |
325 '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 } | 323 '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 } |
326 $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \ | 324 $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \ |
446 (cd src/s | 444 (cd src/s |
447 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s) | 445 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s) |
448 | 446 |
449 echo "Making links to \`lib-src'" | 447 echo "Making links to \`lib-src'" |
450 (cd lib-src | 448 (cd lib-src |
451 ln [a-zA-Z]*.[chmy] ../${tempdir}/lib-src | 449 ln [a-zA-Z]*.[ch] ../${tempdir}/lib-src |
452 ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src | 450 ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src |
453 ln grep-changelog rcs2log rcs-checkin ../${tempdir}/lib-src | 451 ln grep-changelog rcs2log rcs-checkin ../${tempdir}/lib-src |
454 ln makefile.w32-in ../${tempdir}/lib-src | 452 ln makefile.w32-in ../${tempdir}/lib-src |
455 cd ../${tempdir}/lib-src | 453 cd ../${tempdir}/lib-src |
456 rm -f getopt.h) | 454 rm -f getopt.h) |