[sheepdog] [PATCH 2/2] deb: create deb package from raw source archive
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Thu Feb 6 12:46:08 CET 2014
This patch makes it possible for users to create debian package from
raw source archive.
Related issue:
https://bugs.launchpad.net/sheepdog-project/+bug/1264255
Reported-by: Bastian Scholz <scholzb at t-online.de>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
Makefile.am | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 4b5a098..a00ba2f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -95,7 +95,11 @@ rpm: clean
deb:
fakeroot ./debian/rules clean
- git log > debian/CHANGELOG
+ @if [ -d .git ]; then \
+ git log > debian/CHANGELOG; \
+ else \
+ echo "This package doesn't contain CHANGELOG because it is build from raw source archive." > debian/CHANGELOG; \
+ fi
rm -f debian/changelog
dch -v $(shell echo $(PACKAGE_VERSION) | sed s/_/+/ | sed s/_/./g)-1 \
--package sheepdog --create 'Local build'
--
1.7.10.4
More information about the sheepdog
mailing list