summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-02-20 17:28:35 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-02-20 17:31:02 +0000
commit5f8bccce9893205d80e63da7e3c75c63c3041381 (patch)
tree72c6584b8805a4ddfbeb677d40fed791c4885104 /tools
parent8ae7472cfdd0b88718c73749d48d03fc2643f290 (diff)
downloadtelepathy-glib-5f8bccce9893205d80e63da7e3c75c63c3041381.tar.gz
Fix out-of-tree releases
Diffstat (limited to 'tools')
-rw-r--r--tools/telepathy.am8
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