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
|