Fix 'make deb' when not in a hg repo.

This commit is contained in:
Kris Maglione 2010-05-24 10:14:02 -04:00
parent 0917e51c54
commit 83d0184d11

View File

@ -22,9 +22,9 @@ deb:
if [ -d .hg ]; \
then hg tip --template 'wmii-hg ($(VERSION)) $(DISTRO); urgency=low\n\n * {desc}\n\n -- {author} {date|rfc822date}\n'; \
else awk 'BEGIN{"date"|getline; print "wmii-hg ($(VERSION)) $(DISTRO); urgency=low\n\n * Upstream build\n\n -- Kris Maglione <jg@suckless.org> "$$0"\n"}'; \
fi >debian/changelog
fi >debian/changelog || true
dpkg-buildpackage -rfakeroot -b -nc
[ -d .hg ] && hg revert debian/changelog
[ -d .hg ] && hg revert debian/changelog || true
include $(ROOT)/mk/dir.mk