commit 83d0184d11644b4152f1a098516b132746831501
parent 0917e51c541e1e4e8dc8bcfa1de636e6f44e4f03
Author: Kris Maglione <kris@suckless.org>
Date: Mon, 24 May 2010 10:14:02 -0400
Fix 'make deb' when not in a hg repo.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -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