diff options
| author | Glenn Morris | 2015-05-08 21:34:35 -0400 |
|---|---|---|
| committer | Glenn Morris | 2015-05-08 21:34:35 -0400 |
| commit | e0c7e102cf0f8636af2bff0c0eefdf4bb669ac38 (patch) | |
| tree | ee5c6cf6d3c547f1e34761503b76593075c4e1df | |
| parent | 63bee24f74ebd24ed7816c930efb463485b862c7 (diff) | |
| download | emacs-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.in | 4 | ||||
| -rwxr-xr-x | build-aux/gitlog-to-emacslog | 12 |
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? |
| 1104 | ChangeLog: | 1104 | ChangeLog: |
| 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. |
| 1109 | master-branch-is-current: | 1109 | master-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 |
| 40 | done | 40 | done |
| 41 | 41 | ||
| 42 | if [ ! -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 | ||
| 46 | fi | ||
| 47 | |||
| 42 | if [ -f "$output" ]; then | 48 | if [ -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 |
| 45 | fi | 51 | fi |
| 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. |
| 48 | test -d ${srcprefix}.git || { | 54 | test -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 | ||