~xnox/openobject-server/wip

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Dmitrijs Ledkovs
  • Date: 2011-11-22 18:05:26 UTC
  • Revision ID: dmitrijs.ledkovs@credativ.co.uk-20111122180526-3fwdvxxasz5u9dt3
WIP

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
 
2
DEB_SOURCE_NAME:=$(shell dpkg-parsechangelog | sed -rne 's,^Source: (.*),\1,p')
2
3
 
3
4
%:
4
5
        dh --with python2 $@
5
6
 
6
7
override_dh_auto_install:
7
 
        NO_CHECK_MODULES=1 dh_auto_install
 
8
        NO_CHECK_MODULES=1 dh_auto_install -- --install-lib /usr/share/$(DEB_SOURCE_NAME)
8
9
        sed -i -e 's|cd .*python.*/dist-packages|cd /usr/share/pyshared|' debian/openerp6-server/usr/bin/openerp-server
9
 
        exit 1
10
10
        rm -rf debian/openerp6-server/usr/share/doc/openerp-server-*
11
11
 
12
12
override_dh_installchangelogs:
25
25
# You can specify local checkout, e.g. UPSTREAM_BRANCH=~/src/openerp/6.0/server ./debian/rules stable-updates
26
26
UPSTREAM_BRANCH?=lp:openobject-server/6.0
27
27
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+)-.*,\1,p')
28
 
DEB_SOURCE_NAME=$(shell dpkg-parsechangelog | sed -rne 's,^Source: (.*),\1,p')
29
28
PATCH_FILE:=debian/patches/z_stable_updates.patch
30
29
PATCH_LEVEL:=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*bzr([0-9]*).*,\1,p')
31
30
stable-updates: