[hackers] [wmii] Fix 'make deb' when not in a hg repo. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Mon, 24 May 2010 14:14:37 +0000 (UTC)

changeset: 2633:bfb3f574bb3f
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Mon May 24 10:14:02 2010 -0400
files: Makefile
description:
Fix 'make deb' when not in a hg repo.

diff -r 35525c4877cd -r bfb3f574bb3f Makefile
--- a/Makefile Mon May 24 08:49:12 2010 -0400
+++ b/Makefile Mon May 24 10:14:02 2010 -0400
@@ -22,9 +22,9 @@
         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_AT_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
 
Received on Mon May 24 2010 - 14:14:37 UTC

This archive was generated by hypermail 2.2.0 : Mon May 24 2010 - 14:24:03 UTC