File: rules

package info (click to toggle)
xmlstarlet 1.6.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,472 kB
  • sloc: sh: 4,735; ansic: 4,183; xml: 1,936; makefile: 66; awk: 43
file content (26 lines) | stat: -rwxr-xr-x 690 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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

# Use hardening options to build the package
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_VERSION_UPSTREAM

%:
	dh $@

# Rename the binary xml -> xmlstarlet
override_dh_auto_configure:
	dh_auto_configure -- --program-transform-name=s/xml$$/xmlstarlet/ --enable-build-docs

override_dh_fixperms:
	dh_fixperms
	chmod 644 $(CURDIR)/debian/xmlstarlet/usr/share/doc/xmlstarlet/examples/xml/xmlstarlet*.xml

override_dh_installchangelogs:
	dh_installchangelogs -XChangeLog

override_dh_installexamples:
	dh_installexamples --exclude=log --exclude=trs examples/*