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 /build-aux | |
| 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.
Diffstat (limited to 'build-aux')
| -rwxr-xr-x | build-aux/gitlog-to-emacslog | 12 |
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 |
| 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 | ||