build: Do not generate ChangeLog from tarball.

* configure (main): Set .git-for-build.
* build-aux/install.sh.in (DESTDIR): Use it as canary to skip
ChangeLog rebuild.
This commit is contained in:
Jan Nieuwenhuizen 2019-07-21 17:13:39 +02:00
parent 2cc6d5a012
commit 613bd96abe
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
2 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,7 @@ mkdir -p ${DESTDIR}${docdir}
if test -n "${PERL}"\
&& test -n "${GIT}"\
&& ${PERL} -v > /dev/null\
&& ${GIT} status > /dev/null; then
&& ! test -f .git-for-build; then
${PERL} ${srcdest}build-aux/gitlog-to-changelog --srcdir=. > ChangeLog+
fi

1
configure vendored
View File

@ -541,6 +541,7 @@ See \"Porting GNU Mes\" in the manual, or try --with-courage\n" mes-system)
;; Debian wants to run `make clean' from a tarball
(and (zero? (system* "git" "init"))
(zero? (system* "git" "add" "."))
(zero? (system* "touch" ".git-for-build"))
(zero? (system* "git" "commit" "--allow-empty" "-m" "Import mes")))))
(let ((pairs `(("@PACKAGE@" . ,PACKAGE)