projects
/
grml-hwinfo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of generated files which are empty
[grml-hwinfo.git]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index
4cbc41b
..
33a7a27
100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-9,24
+9,30
@@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-build: build-stamp
+VERSION:=$(shell dpkg-parsechangelog | awk '/Version: / { print $$2 }')
+
+build: build-arch build-indep
+
+build-arch: build-stamp
+
+build-indep: build-stamp
build-stamp:
dh_testdir
build-stamp:
dh_testdir
-
+ egrep -q "^VERSION=.*UNRELEASED" grml-hwinfo || \
+ (echo "Wrong version in grml-hwinfo" && exit 2)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
touch build-stamp
clean:
dh_testdir
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
+47,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