projects
/
grml-hwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
24ef6ad
)
Adjust version string of script during package build-time
author
Michael Prokop
<mika@grml.org>
Fri, 27 Jan 2012 22:57:27 +0000
(23:57 +0100)
committer
Michael Prokop
<mika@grml.org>
Fri, 27 Jan 2012 22:57:49 +0000
(23:57 +0100)
debian/rules
patch
|
blob
|
history
grml-hwinfo
patch
|
blob
|
history
diff --git
a/debian/rules
b/debian/rules
index
4cbc41b
..
e793978
100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-9,10
+9,15
@@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+VERSION:=$(shell dpkg-parsechangelog | awk '/Version: / { print $$2 }')
+
+
build: build-stamp
build-stamp:
dh_testdir
build: build-stamp
build-stamp:
dh_testdir
+ egrep -q "^VERSION=.*UNRELEASED" grml-hwinfo || \
+ (echo "Wrong version in grml-hwinfo" && exit 2)
touch build-stamp
touch build-stamp
@@
-21,12
+26,12
@@
clean:
dh_testroot
rm -f build-stamp
dh_testroot
rm -f build-stamp
- dh_clean
+ dh_clean
install: build
dh_testdir
dh_testroot
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/grml-hwinfo.
dh_installdirs
# Add here commands to install the package into debian/grml-hwinfo.
@@
-41,9
+46,10
@@
binary-arch: build install
binary-indep: build install
dh_testdir
dh_testroot
binary-indep: build install
dh_testdir
dh_testroot
- dh_installchangelogs
+ dh_installchangelogs
dh_installdocs
dh_installman grml-hwinfo.1 sysdump.8
dh_installdocs
dh_installman grml-hwinfo.1 sysdump.8
+ sed -i -e "s/^VERSION='\*\*\*UNRELEASED\*\*\*'/VERSION='$(VERSION)'/" $(CURDIR)/debian/grml-hwinfo/usr/bin/grml-hwinfo
dh_link
dh_strip
dh_compress
dh_link
dh_strip
dh_compress
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
795dfb5
..
4105ee0
100755
(executable)
--- a/
grml-hwinfo
+++ b/
grml-hwinfo
@@
-14,7
+14,7
@@
UNAME="$(uname -r)"
PN="$(basename $0)"
[ -n "$WORKING_DIR" -a -d "$WORKING_DIR" ] || WORKING_DIR=$(pwd)
UNAME="$(uname -r)"
PN="$(basename $0)"
[ -n "$WORKING_DIR" -a -d "$WORKING_DIR" ] || WORKING_DIR=$(pwd)
-VERSION='
0.4.1
'
+VERSION='
***UNRELEASED***
'
# data collection should not be affected by user locale
export LANG=C
# data collection should not be affected by user locale
export LANG=C