aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2015-05-11 20:29:06 -0400
committerGlenn Morris2015-05-11 20:29:06 -0400
commitf0352ebdf088bea19b44ddb31e94888bc2345a24 (patch)
treedd0260752046a48d4c74bb4c320539e971faf45f
parent0a21b26c58a241ac41cd12cd10cd605238bb2640 (diff)
downloademacs-f0352ebdf088bea19b44ddb31e94888bc2345a24.tar.gz
emacs-f0352ebdf088bea19b44ddb31e94888bc2345a24.zip
* make-dist: Abort if "make ChangeLog" fails. Add "--no-changelog".
-rwxr-xr-xmake-dist18
1 files changed, 13 insertions, 5 deletions
diff --git a/make-dist b/make-dist
index 1b44f901c17..bc5874e6b7d 100755
--- a/make-dist
+++ b/make-dist
@@ -52,6 +52,7 @@ make_tar=no
52default_gzip=gzip 52default_gzip=gzip
53newer="" 53newer=""
54with_tests=no 54with_tests=no
55changelog=yes
55 56
56while [ $# -gt 0 ]; do 57while [ $# -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
277echo "Creating top directory: '${tempdir}'" 282echo "Creating top directory: '${tempdir}'"
278mkdir ${tempdir} 283mkdir ${tempdir}
279 284
280if test -d .git; then 285if [ "$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"
283else 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
285fi 293fi
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