aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorGlenn Morris2015-05-08 21:34:35 -0400
committerGlenn Morris2015-05-08 21:34:35 -0400
commite0c7e102cf0f8636af2bff0c0eefdf4bb669ac38 (patch)
treeee5c6cf6d3c547f1e34761503b76593075c4e1df /build-aux
parent63bee24f74ebd24ed7816c930efb463485b862c7 (diff)
downloademacs-e0c7e102cf0f8636af2bff0c0eefdf4bb669ac38.tar.gz
emacs-e0c7e102cf0f8636af2bff0c0eefdf4bb669ac38.zip
* Makefile.in (ChangeLog): No longer pass "srcprefix"; cd instead.
* build-aux/gitlog-to-emacslog: Check called from right directory. (srcprefix): Remove.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/gitlog-to-emacslog12
1 files changed, 9 insertions, 3 deletions
diff --git a/build-aux/gitlog-to-emacslog b/build-aux/gitlog-to-emacslog
index 4cf2ed61907..134acf2ee54 100755
--- a/build-aux/gitlog-to-emacslog
+++ b/build-aux/gitlog-to-emacslog
@@ -39,19 +39,25 @@ while [ $# -gt 0 ]; do
39 shift 39 shift
40done 40done
41 41
42if [ ! -f ChangeLog.$nmax ]; then
43 echo "Can't find ChangeLog.$nmax" >&2
44 echo "Must be run from the top source directory" >&2
45 exit 1
46fi
47
42if [ -f "$output" ]; then 48if [ -f "$output" ]; then
43 [ ! "$force" ] && echo "$output exists" && exit 1 49 [ ! "$force" ] && echo "$output exists" >&2 && exit 1
44 rm -f "$output" || exit 1 50 rm -f "$output" || exit 1
45fi 51fi
46 52
47# If this is not a Git repository, just generate an empty ChangeLog. 53# If this is not a Git repository, just generate an empty ChangeLog.
48test -d ${srcprefix}.git || { 54test -d .git || {
49 >"$output" 55 >"$output"
50 exit 56 exit
51} 57}
52 58
53# Use Gnulib's packaged ChangeLog generator. 59# Use Gnulib's packaged ChangeLog generator.
54${srcprefix}build-aux/gitlog-to-changelog --ignore-matching='^; ' \ 60./build-aux/gitlog-to-changelog --ignore-matching='^; ' \
55 --format='%B' \ 61 --format='%B' \
56 "$gen_origin.." >"ChangeLog.tmp" || exit 62 "$gen_origin.." >"ChangeLog.tmp" || exit
57 63