summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2015-05-08 21:34:35 -0400
committerGlenn Morris <rgm@gnu.org>2015-05-08 21:34:35 -0400
commite0c7e102cf0f8636af2bff0c0eefdf4bb669ac38 (patch)
treeee5c6cf6d3c547f1e34761503b76593075c4e1df /build-aux
parent63bee24f74ebd24ed7816c930efb463485b862c7 (diff)
* 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 4cf2ed6190..134acf2ee5 100755
--- a/build-aux/gitlog-to-emacslog
+++ b/build-aux/gitlog-to-emacslog
@@ -39,19 +39,25 @@ while [ $# -gt 0 ]; do
shift
done
+if [ ! -f ChangeLog.$nmax ]; then
+ echo "Can't find ChangeLog.$nmax" >&2
+ echo "Must be run from the top source directory" >&2
+ exit 1
+fi
+
if [ -f "$output" ]; then
- [ ! "$force" ] && echo "$output exists" && exit 1
+ [ ! "$force" ] && echo "$output exists" >&2 && exit 1
rm -f "$output" || exit 1
fi
# If this is not a Git repository, just generate an empty ChangeLog.
-test -d ${srcprefix}.git || {
+test -d .git || {
>"$output"
exit
}
# Use Gnulib's packaged ChangeLog generator.
-${srcprefix}build-aux/gitlog-to-changelog --ignore-matching='^; ' \
+./build-aux/gitlog-to-changelog --ignore-matching='^; ' \
--format='%B' \
"$gen_origin.." >"ChangeLog.tmp" || exit