diff options
| author | Glenn Morris | 2015-05-11 20:29:06 -0400 |
|---|---|---|
| committer | Glenn Morris | 2015-05-11 20:29:06 -0400 |
| commit | f0352ebdf088bea19b44ddb31e94888bc2345a24 (patch) | |
| tree | dd0260752046a48d4c74bb4c320539e971faf45f /make-dist | |
| parent | 0a21b26c58a241ac41cd12cd10cd605238bb2640 (diff) | |
| download | emacs-f0352ebdf088bea19b44ddb31e94888bc2345a24.tar.gz emacs-f0352ebdf088bea19b44ddb31e94888bc2345a24.zip | |
* make-dist: Abort if "make ChangeLog" fails. Add "--no-changelog".
Diffstat (limited to 'make-dist')
| -rwxr-xr-x | make-dist | 18 |
1 files changed, 13 insertions, 5 deletions
| @@ -52,6 +52,7 @@ make_tar=no | |||
| 52 | default_gzip=gzip | 52 | default_gzip=gzip |
| 53 | newer="" | 53 | newer="" |
| 54 | with_tests=no | 54 | with_tests=no |
| 55 | changelog=yes | ||
| 55 | 56 | ||
| 56 | while [ $# -gt 0 ]; do | 57 | while [ $# -gt 0 ]; do |
| 57 | case "$1" in | 58 | case "$1" in |
| @@ -72,6 +73,9 @@ while [ $# -gt 0 ]; do | |||
| 72 | "--no-check" ) | 73 | "--no-check" ) |
| 73 | check=no | 74 | check=no |
| 74 | ;; | 75 | ;; |
| 76 | "--no-changelog" ) | ||
| 77 | changelog=no | ||
| 78 | ;; | ||
| 75 | ## This option tells make-dist to make the distribution normally, then | 79 | ## This option tells make-dist to make the distribution normally, then |
| 76 | ## remove all files older than the given timestamp file. This is useful | 80 | ## remove all files older than the given timestamp file. This is useful |
| 77 | ## for creating incremental or patch distributions. | 81 | ## for creating incremental or patch distributions. |
| @@ -115,6 +119,7 @@ while [ $# -gt 0 ]; do | |||
| 115 | echo " --newer=TIME don't include files older than TIME" | 119 | echo " --newer=TIME don't include files older than TIME" |
| 116 | echo " --no-check don't check for bad file names etc." | 120 | echo " --no-check don't check for bad file names etc." |
| 117 | echo " --no-update don't recompile or do analogous things" | 121 | echo " --no-update don't recompile or do analogous things" |
| 122 | echo " --no-changelog don't generate the top-level ChangeLog" | ||
| 118 | echo " --snapshot same as --clean-up --no-update --tar --no-check" | 123 | echo " --snapshot same as --clean-up --no-update --tar --no-check" |
| 119 | echo " --tar make a tar file" | 124 | echo " --tar make a tar file" |
| 120 | echo " --tests include the test/ directory" | 125 | echo " --tests include the test/ directory" |
| @@ -277,11 +282,14 @@ fi | |||
| 277 | echo "Creating top directory: '${tempdir}'" | 282 | echo "Creating top directory: '${tempdir}'" |
| 278 | mkdir ${tempdir} | 283 | mkdir ${tempdir} |
| 279 | 284 | ||
| 280 | if test -d .git; then | 285 | if [ "$changelog" = yes ]; then |
| 281 | echo "Making top-level ChangeLog" | 286 | if test -d .git; then |
| 282 | make ChangeLog CHANGELOG=${tempdir}/ChangeLog | 287 | echo "Making top-level ChangeLog" |
| 283 | else | 288 | make ChangeLog CHANGELOG=${tempdir}/ChangeLog || \ |
| 284 | echo "No repository, so omitting top-level ChangeLog" | 289 | { x=$?; echo "make ChangeLog FAILED (try --no-changelog?)" >&2; exit $x; } |
| 290 | else | ||
| 291 | echo "No repository, so omitting top-level ChangeLog" | ||
| 292 | fi | ||
| 285 | fi | 293 | fi |
| 286 | 294 | ||
| 287 | ### We copy in the top-level files before creating the subdirectories in | 295 | ### We copy in the top-level files before creating the subdirectories in |