From 21d2353381164839ca16294e42057c3747396791 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 19 Feb 2017 08:36:42 -0700 Subject: replace quilt patch with call to `sed` in d/rules --- debian/rules | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 26ba625..42db5da 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,7 @@ #!/usr/bin/make -f + +manpage = debian/git-remote-gcrypt/usr/share/man/man1/git-remote-gcrypt.1 + %: dh $@ @@ -9,3 +12,9 @@ override_dh_auto_clean: override_dh_auto_install: prefix=/usr DESTDIR=debian/git-remote-gcrypt ./install.sh + # remove installation instructions from manpage (this is + # essentially an automatically-refreshing quilt patch) + gunzip ${manpage}.gz + sed -i ${manpage} -e \ + '/^.SS Installation$$/,/^.SS/{ /^.SS Installation$$/d; /^.SS/!d }' + gzip -n ${manpage} -- cgit v1.2.3