[Debian-astro-commits] [funtools] 01/02: Fix manpages patch

Ole Streicher olebole at moszumanska.debian.org
Mon Oct 19 12:02:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository funtools.

commit dc27046550581319ca308b7e52170ea41040adb0
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Mon Oct 19 14:03:13 2015 +0200

    Fix manpages patch
---
 debian/patches/fix_manpages.patch | 37 +++++++++++++++++++++++++++++++++++++
 debian/patches/series             |  1 +
 2 files changed, 38 insertions(+)

diff --git a/debian/patches/fix_manpages.patch b/debian/patches/fix_manpages.patch
new file mode 100644
index 0000000..8bb374e
--- /dev/null
+++ b/debian/patches/fix_manpages.patch
@@ -0,0 +1,37 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Fix manpages (section and name) so that lintian does not complain
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -462,14 +462,19 @@
+ install-man:
+ 	@if [ ! -d $(MAN_INSTALL_DIR) ] ; then \
+ 	    echo "Making directory $(MAN_INSTALL_DIR)"; \
+-	    mkdir $(MAN_INSTALL_DIR); \
++	    mkdir -p $(MAN_INSTALL_DIR); \
+ 	    chmod 755 $(MAN_INSTALL_DIR); \
+ 	    else true; \
+ 	fi;
+ 	@-(for i in `ls ./man/man?/*.?` ; \
+ 	    do \
+-		B=`basename $$i`; \
+-		E=`echo $$i | awk -F. '{print $$NF}'`; \
++		B=`basename $$i|sed s/\\\\.n/.7/`; \
++		E=`echo $$i | awk -F. '{print $$NF}' | sed s/n/7/`; \
++		case $$B in \
++			funds9.7) \
++				B=funds9.1; \
++				E=1;; \
++		esac; \
+ 		M="$(MAN_INSTALL_DIR)/man$$E"; \
+ 		if [ ! -d $$M ] ; then \
+ 		    echo "Making directory $$M"; \
+@@ -479,6 +484,9 @@
+ 		fi; \
+ 		echo "Installing $$B" ; \
+ 		$(INSTALL_DATA) $$i $$M/$$B; \
++		sed -i "s/\([ \"\']\)\(-[A-Za-z0-9]\)/\1\\\\\2/g" $$M/$$B ; \
++		sed -i "s/^\\\&\\\fB\(.*\):\(.*\)\\\fR/\1 \- \2/g" $$M/$$B ;\
++		sed -i "s/funtools(n)/funtools(7)/g" $$M/$$B ; \
+ 	    done;)
+ 
+ install-share:
diff --git a/debian/patches/series b/debian/patches/series
index ef62806..32d3e91 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+fix_manpages.patch
 link_to_so.patch
 use_shared_libwcstools.patch
 build_tclfun.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/funtools.git



More information about the Debian-astro-commits mailing list