~smoser/curtin/trunk.bzr-dead

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Scott Moser
  • Date: 2017-12-20 17:33:03 UTC
  • Revision ID: smoser@ubuntu.com-20171220173303-29gha5qb8wpqrd40
README: Mention move of revision control to git.

curtin development has moved its revision control to git.
It is available at
  https://code.launchpad.net/curtin

Clone with
  git clone https://git.launchpad.net/curtin
or
  git clone git+ssh://git.launchpad.net/curtin

For more information see
  http://curtin.readthedocs.io/en/latest/topics/development.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/make -f
2
 
 
3
 
PYVERS := $(shell pyversions -r)
4
 
PY3VERS := $(shell py3versions -r)
5
 
 
6
 
DEB_VERSION := $(shell dpkg-parsechangelog --show-field=Version)
7
 
UPSTREAM_VERSION := $(shell x="$(DEB_VERSION)"; echo "$${x%-*}")
8
 
PKG_VERSION := $(shell x="$(DEB_VERSION)"; echo "$${x\#\#*-}")
9
 
 
10
 
%:
11
 
        dh $@ --with=python2,python3
12
 
 
13
 
override_dh_auto_install:
14
 
        dh_auto_install
15
 
        set -ex; for python in $(PY3VERS) $(PYVERS); do \
16
 
                $$python setup.py build --executable=/usr/bin/python && \
17
 
                $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
18
 
        done
19
 
        chmod 755 $(CURDIR)/debian/tmp/usr/lib/curtin/helpers/*
20
 
        find $(CURDIR)/debian/tmp
21
 
        for f in $$(find $(CURDIR)/debian/tmp/usr/lib -type f -name version.py); do [ -f "$$f" ] || continue; sed -i 's,@@PACKAGED_VERSION@@,$(DEB_VERSION),' "$$f"; done