aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorGlenn Morris2016-12-07 19:59:14 -0500
committerGlenn Morris2016-12-07 19:59:14 -0500
commit75c9314cbf01e048f9626b26233b2de7b9cdba65 (patch)
tree153d0811322317159fbc2dbeabc86e8d73bedb74 /make-dist
parent55c1937e52625c68d5f9de332bbd47f7def5d1c0 (diff)
downloademacs-75c9314cbf01e048f9626b26233b2de7b9cdba65.tar.gz
emacs-75c9314cbf01e048f9626b26233b2de7b9cdba65.zip
Quieten make-dist default operation
* make-dist: Add --verbose option. Default to quieter operation.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist13
1 files changed, 11 insertions, 2 deletions
diff --git a/make-dist b/make-dist
index c0b0a0466f2..b0a8dff2cc7 100755
--- a/make-dist
+++ b/make-dist
@@ -53,6 +53,7 @@ default_gzip=gzip
53newer="" 53newer=""
54with_tests=no 54with_tests=no
55changelog=yes 55changelog=yes
56verbose=no
56 57
57while [ $# -gt 0 ]; do 58while [ $# -gt 0 ]; do
58 case "$1" in 59 case "$1" in
@@ -109,6 +110,10 @@ while [ $# -gt 0 ]; do
109 with_tests=yes 110 with_tests=yes
110 ;; 111 ;;
111 112
113 "--verbose")
114 verbose=yes
115 ;;
116
112 "--help") 117 "--help")
113 printf '%s\n' "Usage: ${progname} [options]" 118 printf '%s\n' "Usage: ${progname} [options]"
114 echo "" 119 echo ""
@@ -123,6 +128,7 @@ while [ $# -gt 0 ]; do
123 echo " --snapshot same as --clean-up --no-update --tar --no-check" 128 echo " --snapshot same as --clean-up --no-update --tar --no-check"
124 echo " --tar make a tar file" 129 echo " --tar make a tar file"
125 echo " --tests include the test/ directory" 130 echo " --tests include the test/ directory"
131 echo " --verbose noisier output"
126 echo "" 132 echo ""
127 exit 0 133 exit 0
128 ;; 134 ;;
@@ -330,7 +336,7 @@ do
330 ## site-lisp for in-place installs (?). 336 ## site-lisp for in-place installs (?).
331 [ "$subdir" = "site-lisp" ] || [ -d "$subdir" ] || \ 337 [ "$subdir" = "site-lisp" ] || [ -d "$subdir" ] || \
332 echo "WARNING: $subdir not found, making anyway" 338 echo "WARNING: $subdir not found, making anyway"
333 echo " ${tempdir}/${subdir}" 339 [ "$verbose" = "yes" ] && echo " ${tempdir}/${subdir}"
334 mkdir ${tempdir}/${subdir} 340 mkdir ${tempdir}/${subdir}
335done 341done
336 342
@@ -576,7 +582,10 @@ if [ "${make_tar}" = yes ]; then
576 *) gzip_extension= ;; 582 *) gzip_extension= ;;
577 esac 583 esac
578 echo "Creating tar file" 584 echo "Creating tar file"
579 (cd ${tempparent} ; tar cvf - ${emacsname} ) \ 585 taropt=
586 [ "$verbose" = "yes" ] && taropt=v
587
588 (cd ${tempparent} ; tar c${taropt}f - ${emacsname} ) \
580 | ${default_gzip} \ 589 | ${default_gzip} \
581 > ${emacsname}.tar${gzip_extension} 590 > ${emacsname}.tar${gzip_extension}
582fi 591fi