aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorNoam Postavsky2018-05-04 22:13:18 -0400
committerNoam Postavsky2018-05-20 09:47:36 -0400
commita32412b8aa3dc14d810054601d9502ccfd1dae57 (patch)
treee5981b3b71cc9f4af8a2d2a1fdf28b1f02261fc7 /make-dist
parentbb591f139f0602af292c772f974dcc14dabb1deb (diff)
downloademacs-a32412b8aa3dc14d810054601d9502ccfd1dae57.tar.gz
emacs-a32412b8aa3dc14d810054601d9502ccfd1dae57.zip
* make-dist: Add '--no-info' option.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist17
1 files changed, 13 insertions, 4 deletions
diff --git a/make-dist b/make-dist
index aba5c43c52f..bafcae35f08 100755
--- a/make-dist
+++ b/make-dist
@@ -51,6 +51,7 @@ clean_up=no
51make_tar=no 51make_tar=no
52default_gzip=gzip 52default_gzip=gzip
53newer="" 53newer=""
54with_info=yes
54with_tests=no 55with_tests=no
55changelog=yes 56changelog=yes
56verbose=no 57verbose=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
597done 606done
598 607
599if [ -d info ]; then # Skip in case we've built --without-makeinfo. 608if [ "$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
602fi 611fi