1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/usr/bin/make -f
VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
SVN_REV=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*svn([^+-]+).*,\1,p')
SVN_URL=http://gitso.googlecode.com/svn/gitso/trunk/
ORIGDIR=gitso-$(VERSION)
TARNAME=gitso_$(VERSION).orig.tar.xz
get-orig-source:
rm -rf $(ORIGDIR)
svn checkout -r $(SVN_REV) $(SVN_URL) $(ORIGDIR)
rm -rf $(ORIGDIR)/.svn $(ORIGDIR)/arch/osx $(ORIGDIR)/arch/win32
tar cJf ../$(TARNAME) $(ORIGDIR)
rm -rf $(ORIGDIR)
%:
dh $@
override_dh_installchangelogs:
dh_installchangelogs debian/CHANGELOG.txt
|