File: rules

package info (click to toggle)
libosm-gary68-perl 0.0~svn26727-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 244 kB
  • ctags: 245
  • sloc: perl: 4,275; makefile: 14
file content (22 lines) | stat: -rwxr-xr-x 595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

ifeq ($(SVNREV),)
SVNREV=$(shell dpkg-parsechangelog | grep ^Version | cut -d- -f1 | awk -F"svn" '{print $$2}')
endif
SVNREPO=http://svn.openstreetmap.org/applications/utils/gary68/OSM/

%:
	dh $@

get-orig-source:
	svn checkout -r$(SVNREV) $(SVNREPO)
	rm -rf OSM/.svn/
	mkdir -p libosm-gary68-perl/lib/
	mv OSM/ libosm-gary68-perl/lib/
	tar cf libosm-gary68-perl_0.0~svn$(SVNREV).orig.tar libosm-gary68-perl/
	gzip -9 libosm-gary68-perl_0.0~svn$(SVNREV).orig.tar
	rm -rf libosm-gary68-perl/