diff options
| author | Glenn Morris | 2010-10-11 23:38:34 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-11 23:38:34 -0700 |
| commit | aa267dcf932abbf636ff1490d71af7a140b8046e (patch) | |
| tree | 39d4771323b43b851e782a0257fa24ee545b905e | |
| parent | baf81c5524e3da91cf6a5b91fbff920f07037017 (diff) | |
| download | emacs-aa267dcf932abbf636ff1490d71af7a140b8046e.tar.gz emacs-aa267dcf932abbf636ff1490d71af7a140b8046e.zip | |
* make-dist: Simplify creation of lisp/MANIFEST.
| -rwxr-xr-x | make-dist | 26 |
1 files changed, 12 insertions, 14 deletions
| @@ -279,21 +279,17 @@ then | |||
| 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 | ||
| @@ -319,6 +315,8 @@ 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 \ |
| @@ -448,7 +446,7 @@ echo "Making links to \`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 |