File: rules

package info (click to toggle)
graphlan 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,728 kB
  • sloc: xml: 29,182; python: 1,699; sh: 137; makefile: 11
file content (17 lines) | stat: -rwxr-xr-x 434 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8


%:
	dh $@  --with python2

override_dh_installexamples:
	dh_installexamples
	for sh in `find debian/*/usr/share/doc/*/examples -type f -name "*.sh"` ; do \
	    sed -i -e 's/graphlan_annotate.py/graphlan_annotate/g' -e 's/graphlan.py/graphlan/g' $${sh} ; \
	    if ! head -n1 $${sh} | grep -q '/bin/sh' ; then \
	        sed -i '1i #!/bin/sh' $${sh} ; \
	    fi ; \
	done