diff options
| author | Noam Postavsky | 2018-05-04 22:13:18 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2018-05-20 09:47:36 -0400 |
| commit | a32412b8aa3dc14d810054601d9502ccfd1dae57 (patch) | |
| tree | e5981b3b71cc9f4af8a2d2a1fdf28b1f02261fc7 /make-dist | |
| parent | bb591f139f0602af292c772f974dcc14dabb1deb (diff) | |
| download | emacs-a32412b8aa3dc14d810054601d9502ccfd1dae57.tar.gz emacs-a32412b8aa3dc14d810054601d9502ccfd1dae57.zip | |
* make-dist: Add '--no-info' option.
Diffstat (limited to 'make-dist')
| -rwxr-xr-x | make-dist | 17 |
1 files changed, 13 insertions, 4 deletions
| @@ -51,6 +51,7 @@ clean_up=no | |||
| 51 | make_tar=no | 51 | make_tar=no |
| 52 | default_gzip=gzip | 52 | default_gzip=gzip |
| 53 | newer="" | 53 | newer="" |
| 54 | with_info=yes | ||
| 54 | with_tests=no | 55 | with_tests=no |
| 55 | changelog=yes | 56 | changelog=yes |
| 56 | verbose=no | 57 | verbose=no |
| @@ -77,6 +78,11 @@ while [ $# -gt 0 ]; do | |||
| 77 | "--no-changelog" ) | 78 | "--no-changelog" ) |
| 78 | changelog=no | 79 | changelog=no |
| 79 | ;; | 80 | ;; |
| 81 | ## This options tells make-dist to skip the info files. This can | ||
| 82 | ## be useful for creating a tarball purely for test purposes. | ||
| 83 | "--no-info" ) | ||
| 84 | with_info=no | ||
| 85 | ;; | ||
| 80 | ## This option tells make-dist to make the distribution normally, then | 86 | ## This option tells make-dist to make the distribution normally, then |
| 81 | ## remove all files older than the given timestamp file. This is useful | 87 | ## remove all files older than the given timestamp file. This is useful |
| 82 | ## for creating incremental or patch distributions. | 88 | ## for creating incremental or patch distributions. |
| @@ -124,6 +130,7 @@ while [ $# -gt 0 ]; do | |||
| 124 | echo " --no-check don't check for bad file names etc." | 130 | echo " --no-check don't check for bad file names etc." |
| 125 | echo " --no-update don't recompile or do analogous things" | 131 | echo " --no-update don't recompile or do analogous things" |
| 126 | echo " --no-changelog don't generate the top-level ChangeLog" | 132 | echo " --no-changelog don't generate the top-level ChangeLog" |
| 133 | echo " --no-info don't include info files" | ||
| 127 | echo " --snapshot same as --clean-up --no-update --tar --no-check" | 134 | echo " --snapshot same as --clean-up --no-update --tar --no-check" |
| 128 | echo " --tar make a tar file" | 135 | echo " --tar make a tar file" |
| 129 | echo " --tests include the test/ directory" | 136 | echo " --tests include the test/ directory" |
| @@ -292,7 +299,7 @@ if [ $check = yes ]; then | |||
| 292 | 299 | ||
| 293 | ## This exits with non-zero status if any .info files need | 300 | ## This exits with non-zero status if any .info files need |
| 294 | ## rebuilding. | 301 | ## rebuilding. |
| 295 | if [ -r Makefile ]; then | 302 | if [ -r Makefile ] && [ "$with_info" = "yes" ]; then |
| 296 | echo "Checking to see if info files are up-to-date..." | 303 | echo "Checking to see if info files are up-to-date..." |
| 297 | make --question info || error=yes | 304 | make --question info || error=yes |
| 298 | fi | 305 | fi |
| @@ -331,8 +338,10 @@ if [ $update = yes ]; then | |||
| 331 | rm -f src/stamp-h.in | 338 | rm -f src/stamp-h.in |
| 332 | echo timestamp > src/stamp-h.in | 339 | echo timestamp > src/stamp-h.in |
| 333 | 340 | ||
| 334 | echo "Updating Info files" | 341 | if [ "$make_info" = yes ] ; then |
| 335 | make info | 342 | echo "Updating Info files" |
| 343 | make info | ||
| 344 | fi | ||
| 336 | 345 | ||
| 337 | echo "Updating finder, custom and autoload data" | 346 | echo "Updating finder, custom and autoload data" |
| 338 | (cd lisp && make updates EMACS="$EMACS") | 347 | (cd lisp && make updates EMACS="$EMACS") |
| @@ -596,7 +605,7 @@ for f in `find etc -type f`; do | |||
| 596 | ln $f $tempdir/$f || exit | 605 | ln $f $tempdir/$f || exit |
| 597 | done | 606 | done |
| 598 | 607 | ||
| 599 | if [ -d info ]; then # Skip in case we've built --without-makeinfo. | 608 | if [ "$with_info" = "yes" ]; then |
| 600 | echo "Making links to 'info'" | 609 | echo "Making links to 'info'" |
| 601 | ln `find info -type f -print` ${tempdir}/info || exit | 610 | ln `find info -type f -print` ${tempdir}/info || exit |
| 602 | fi | 611 | fi |