aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2015-05-08 21:34:35 -0400
committerGlenn Morris2015-05-08 21:34:35 -0400
commite0c7e102cf0f8636af2bff0c0eefdf4bb669ac38 (patch)
treeee5c6cf6d3c547f1e34761503b76593075c4e1df
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.
-rw-r--r--Makefile.in4
-rwxr-xr-xbuild-aux/gitlog-to-emacslog12
2 files changed, 11 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index 8b5d6f73815..2fdbf8d2102 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1102,8 +1102,8 @@ CHANGELOG_N = ChangeLog.$(CHANGELOG_HISTORY_INDEX_MAX)
1102# Convert git commit log to ChangeLog file. make-dist uses this. 1102# Convert git commit log to ChangeLog file. make-dist uses this.
1103# I guess this is PHONY so it always updates? 1103# I guess this is PHONY so it always updates?
1104ChangeLog: 1104ChangeLog:
1105 $(AM_V_GEN)srcprefix=$(srcdir)/ \ 1105 $(AM_V_GEN)cd $(srcdir) && \
1106 $(emacslog) -o $(CHANGELOG) -n $(CHANGELOG_HISTORY_INDEX_MAX) 1106 $(emacslog) -o $(CHANGELOG) -n $(CHANGELOG_HISTORY_INDEX_MAX)
1107 1107
1108# Check that we are in a good state for changing history. 1108# Check that we are in a good state for changing history.
1109master-branch-is-current: 1109master-branch-is-current:
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