diff options
| author | Glenn Morris | 2016-12-07 19:59:14 -0500 |
|---|---|---|
| committer | Glenn Morris | 2016-12-07 19:59:14 -0500 |
| commit | 75c9314cbf01e048f9626b26233b2de7b9cdba65 (patch) | |
| tree | 153d0811322317159fbc2dbeabc86e8d73bedb74 /make-dist | |
| parent | 55c1937e52625c68d5f9de332bbd47f7def5d1c0 (diff) | |
| download | emacs-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-x | make-dist | 13 |
1 files changed, 11 insertions, 2 deletions
| @@ -53,6 +53,7 @@ default_gzip=gzip | |||
| 53 | newer="" | 53 | newer="" |
| 54 | with_tests=no | 54 | with_tests=no |
| 55 | changelog=yes | 55 | changelog=yes |
| 56 | verbose=no | ||
| 56 | 57 | ||
| 57 | while [ $# -gt 0 ]; do | 58 | while [ $# -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} |
| 335 | done | 341 | done |
| 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} |
| 582 | fi | 591 | fi |