File: rules

package info (click to toggle)
libalien-wxwidgets-perl 0.50%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 576 kB
  • ctags: 368
  • sloc: perl: 5,259; sh: 48; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 589 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# wxWidgets version
export V=`dpkg -s libwxgtk2.8-dev | grep ^Version |cut -f2 -d' '`
VMAJOR:=$(shell echo $(V) |cut -f 1 -d .)
VMINOR:=$(shell echo $(V) |cut -f 2 -d .)
VPATCH:=$(shell echo $(V) |cut -f 3 -d .)
NEXTPATCH:=$(shell expr $(VPATCH) + 1 2>/dev/null || expr `echo $(VPATCH) | cut -f 1 -d - ` + 1)

%:
	dh --with quilt $@

override_dh_gencontrol:
	echo 'wx:current=$(VMAJOR).$(VMINOR).$(VPATCH)~' \
		>> debian/libalien-wxwidgets-perl.substvars
	echo 'wx:next=$(VMAJOR).$(VMINOR).$(NEXTPATCH)~' \
		>> debian/libalien-wxwidgets-perl.substvars
	dh_gencontrol