diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-02-20 17:28:35 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-02-20 17:31:02 +0000 |
commit | 5f8bccce9893205d80e63da7e3c75c63c3041381 (patch) | |
tree | 72c6584b8805a4ddfbeb677d40fed791c4885104 /tools | |
parent | 8ae7472cfdd0b88718c73749d48d03fc2643f290 (diff) | |
download | telepathy-glib-5f8bccce9893205d80e63da7e3c75c63c3041381.tar.gz |
Fix out-of-tree releases
Diffstat (limited to 'tools')
-rw-r--r-- | tools/telepathy.am | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/telepathy.am b/tools/telepathy.am index d080afe7e..f696ef308 100644 --- a/tools/telepathy.am +++ b/tools/telepathy.am @@ -3,7 +3,7 @@ dist-hook: chmod u+w ${distdir}/ChangeLog if test -d ${top_srcdir}/.git; then \ - git log --date=iso $(CHANGELOG_RANGE) > ${distdir}/ChangeLog; \ + ( cd ${top_srcdir} && git log --date=iso $(CHANGELOG_RANGE) ) > ${distdir}/ChangeLog; \ fi distcheck-hook: @@ -26,11 +26,13 @@ _is-release-check: exit 2; \ ;; \ esac - @if ! git diff --no-ext-diff --quiet --exit-code; then \ + @cd ${top_srcdir} && \ + if ! git diff --no-ext-diff --quiet --exit-code; then \ echo "Hey! Your tree is dirty! No release for you." >&2; \ exit 2; \ fi - @if ! git diff --cached --no-ext-diff --quiet --exit-code; then \ + @cd ${top_srcdir} && \ + if ! git diff --cached --no-ext-diff --quiet --exit-code; then \ echo "Hey! You have changes staged! No release for you." >&2; \ exit 2; \ fi |