File: rules

package info (click to toggle)
gitso 0.6.2%2Bsvn158%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,820 kB
  • ctags: 143
  • sloc: python: 806; sh: 279; makefile: 15
file content (20 lines) | stat: -rwxr-xr-x 588 bytes parent folder | download | duplicates (2)
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