File: rules

package info (click to toggle)
publib 0.40-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 1,452 kB
  • ctags: 616
  • sloc: ansic: 6,708; sh: 395; makefile: 369
file content (16 lines) | stat: -rwxr-xr-x 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND = -fPIC

%:
	dh "$@"

override_dh_auto_install:
	dh_auto_install -- man3ext=.3pub
	find debian/publib-dev/usr/share/man -type f -name '*.gz' \
	    -exec gunzip {} +
	set -e; find debian/publib-dev/usr/share/man -type f | \
	  while read file; do \
	    sed 's/^\.TH [_A-Z0-9]* [0-9]/&pub/' $$file > $$file.new; \
	    mv $$file.new $$file; done
	find debian/publib-dev/usr/share/man -type f  -exec gzip --best {} +