changeset 467:b52494e14588

7073887 Solaris nroff can't render git man pages correctly
author Rich Burridge <rich.burridge@oracle.com>
date Wed, 26 Oct 2011 19:43:45 -0700
parents 78657b9613fe
children 1384245f6865
files components/git/Makefile
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/components/git/Makefile	Mon Jan 23 00:24:27 2012 -0500
+++ b/components/git/Makefile	Wed Oct 26 19:43:45 2011 -0700
@@ -87,17 +87,17 @@
 	cd $(BUILD_DIR)/man1 ; for manfile in *.1; \
 	do \
 		name=`basename $$manfile .1`; \
-		cat $$manfile > $(DOC)/$$name.1; \
+		sed -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' $$manfile > $(DOC)/$$name.1; \
 	done
 	cd $(BUILD_DIR)/man5 ; for manfile in *.5; \
 	do \
 		name=`basename $$manfile .5`; \
-		sed 's/"5"/"4"/' $$manfile > $(DOC)/$$name.4; \
+		sed -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' -e 's/"5"/"4"/' $$manfile > $(DOC)/$$name.4; \
 	done
 	cd $(BUILD_DIR)/man7 ; for manfile in *.7; \
         do \
 		name=`basename $$manfile .7`; \
-		sed 's/"7"/"5"/' $$manfile > $(DOC)/$$name.5; \
+		sed -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' -e 's/"7"/"5"/' $$manfile > $(DOC)/$$name.5; \
 	done
 	$(TOUCH) $@