~crass/tryton/modules-account-statement

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Mathias Behrle
  • Date: 2013-08-05 16:06:36 UTC
  • Revision ID: git-v1:5e3efb35780fd43a65fddbf424ca4138ff0971e7
Adapting the rules file to work also with git-buildpackage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
3
MAJOR := $(shell python setup.py --version | awk -F "." '{print $$1 "." $$2}')
 
4
PACKAGE_NAME := $(shell python setup.py --name)
4
5
 
5
6
%:
6
7
        dh ${@} --with python2
7
8
 
8
9
override_dh_auto_clean:
9
10
        dh_auto_clean
 
11
 
 
12
override_dh_auto_build:
 
13
        mv $(PACKAGE_NAME).egg-info $(PACKAGE_NAME).hen-info
 
14
        mv PKG-INFO PKG-INFO.hen
 
15
        dh_auto_build
 
16
 
 
17
override_dh_auto_install:
 
18
        dh_auto_install
10
19
        rm -rf *.egg-info
 
20
        mv $(PACKAGE_NAME).hen-info $(PACKAGE_NAME).egg-info
 
21
        mv PKG-INFO.hen PKG-INFO
11
22
 
12
23
override_dh_gencontrol:
13
24
        dh_gencontrol -- -Vversion:major="$(MAJOR)"