File: rules

package info (click to toggle)
omhacks 0.16-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 296 kB
  • ctags: 262
  • sloc: ansic: 2,877; sh: 38; python: 38; makefile: 11
file content (16 lines) | stat: -rwxr-xr-x 582 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

VERSION=$(shell debian/vercheck)

%:
	dh  $@

vercheck:
	debian/vercheck > /dev/null

debsrc: vercheck
	fakeroot debian/rules clean
	test -z "`git ls-files -d -o -m -u -s`" || (echo "There are uncommitted changes" >&2; /bin/false)
	test -z "`git diff --cached`" || (echo "There are uncommitted changes in the index" >&2; /bin/false)
	tar --transform "s/^./omhacks-$(VERSION)/" --exclude=.git --exclude=debian -zcf ../omhacks-$(VERSION).tar.gz . && ln -f ../omhacks-$(VERSION).tar.gz ../omhacks_$(VERSION).orig.tar.gz
	debuild -S -us -uc -rfakeroot -i.git -I.git