mirror of
https://github.com/0intro/wmii
synced 2024-11-25 15:20:15 +03:00
Fix 'make deb' when not in a hg repo.
This commit is contained in:
parent
0917e51c54
commit
83d0184d11
4
Makefile
4
Makefile
@ -22,9 +22,9 @@ deb:
|
|||||||
if [ -d .hg ]; \
|
if [ -d .hg ]; \
|
||||||
then hg tip --template 'wmii-hg ($(VERSION)) $(DISTRO); urgency=low\n\n * {desc}\n\n -- {author} {date|rfc822date}\n'; \
|
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"}'; \
|
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
|
dpkg-buildpackage -rfakeroot -b -nc
|
||||||
[ -d .hg ] && hg revert debian/changelog
|
[ -d .hg ] && hg revert debian/changelog || true
|
||||||
|
|
||||||
include $(ROOT)/mk/dir.mk
|
include $(ROOT)/mk/dir.mk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user