Changeset 4772500 for debian/rules


Ignore:
Timestamp:
2010-06-05T17:35:39Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e774815
Parents:
4c03881
Message:

Put in the necessary hacks to make version number spoofing work again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/rules

    r4c03881 r4772500  
    2020        dh_testdir
    2121
    22         mkdir debian/build-native
     22        mkdir -p debian/build-native
    2323        ROOT=$$PWD; cd debian/build-native; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent $(BITLBEE_CONFIGURE_FLAGS)
    2424        $(MAKE) -C debian/build-native
    2525
    26         mkdir debian/build-libpurple
     26        mkdir -p debian/build-libpurple
    2727        ROOT=$$PWD; cd debian/build-libpurple; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --purple=1 $(BITLBEE_CONFIGURE_FLAGS)
    2828        $(MAKE) -C debian/build-libpurple
     
    6262
    6363        dh_installdocs --link-doc=bitlbee-common
    64         dh_installchangelogs
     64        dh_installchangelogs doc/CHANGES
    6565        dh_installexamples
    6666        dh_installdebconf
     
    8080        dh_shlibdeps
    8181ifdef BITLBEE_VERSION
    82         dh_gencontrol -- -v1:$(BITLBEE_VERSION)-0
     82        echo source:Version=1:$(BITLBEE_VERSION)-0 > debian/substvars
     83        dh_gencontrol -- -v1:$(BITLBEE_VERSION)-0  -Vbee:Version=1:$(BITLBEE_VERSION)-0
    8384else
    84         dh_gencontrol
     85        dh_gencontrol -- -Vbee:Version=$(shell dpkg-parsechangelog | grep ^Version: | awk '{print $$2}' | sed -e 's/+[^+]*$$//')
    8586endif
    8687        dh_md5sums
Note: See TracChangeset for help on using the changeset viewer.