File: rules

package info (click to toggle)
grml-hwinfo 1.8.12
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 92 kB
  • sloc: sh: 464; perl: 88; makefile: 8
file content (14 lines) | stat: -rwxr-xr-x 353 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

execute_after_dh_auto_install:
	egrep -q "^VERSION=.*UNRELEASED" grml-hwinfo || \
	  (echo "Wrong version in grml-hwinfo" && exit 2)

execute_after_dh_install:
	sed -i -e "s/^VERSION='\*\*\*UNRELEASED\*\*\*'/VERSION='$(DEB_VERSION)'/" $(CURDIR)/debian/grml-hwinfo/usr/bin/grml-hwinfo