Skip to content

Commit 5a17df6

Browse files
committed
Merge pull request #50 from dlech/master
Automatically generate RELEASE-VERSION for debian packaging.
2 parents b242d15 + cc08a77 commit 5a17df6

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ __pycache__
33
*.swp
44
dist
55
*.egg-info
6+
RELEASE-VERSION
67
ev3dev/version.py

RELEASE-VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

debian/rules

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
#!/usr/bin/make -f
22

3-
# This file was automatically generated by stdeb 0.8.2 at
4-
# Sun, 01 Nov 2015 16:51:45 -0500
53
export PYBUILD_NAME=python-ev3dev
4+
5+
VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: (.*),\1,p')
6+
67
%:
78
dh $@ --with python2 --buildsystem=pybuild
89

10+
override_dh_auto_configure:
11+
echo VERSION > RELEASE-VERSION
12+
dh_auto_configure
13+
14+
override_dh_auto_clean:
15+
echo VERSION > RELEASE-VERSION
16+
dh_auto_clean
17+
rm -f RELEASE-VERSION

0 commit comments

Comments
 (0)