File: rules

package info (click to toggle)
simple-revision-control 1.26-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 288 kB
  • sloc: python: 2,219; sh: 1,257; makefile: 58
file content (22 lines) | stat: -rwxr-xr-x 793 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f
export prefix=/usr
DESTDIR=debian/simple-revision-control

%:
	dh $@
override_dh_installchangelogs:
	dh_installchangelogs NEWS
override_dh_auto_install:
	dh_auto_install
	sed -i '1s:.*:#!/usr/bin/python3:' $(DESTDIR)/usr/bin/src
	# I have rather vague understanding, what `master_encoding' is,
	# but using any encoding but "utf-8" looks suspicios. Actually,
	# with master_encoding, provided by upstream, I get garbled
	# output when trying to write commit message in non-english
	# language. Hope it will not break anything else.
	sed -i '/^master_encoding/s:.*:master_encoding = "utf-8":' \
	  $(DESTDIR)/usr/bin/src

# Test suite requires working git installation, with user.email and
# user.name set. It is quite complicated to set up on buildd.
override_dh_auto_test: