7073887 Solaris nroff can't render git man pages correctly
authorRich Burridge <rich.burridge@oracle.com>
Wed, 26 Oct 2011 19:43:45 -0700
changeset 552 540527b8254a
parent 551 03fb1541434a
child 553 29d0b0e1eaef
7073887 Solaris nroff can't render git man pages correctly
components/git/Makefile
--- a/components/git/Makefile	Wed Oct 26 19:40:00 2011 -0700
+++ 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) $@