summaryrefslogblamecommitdiff
path: root/misc/gpt/files/patch-packaging__tools_Makefile.in
blob: 7b70ed0ffd4af822034c4132c21bdfcc9f793519 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                            
$FreeBSD$

--- packaging_tools/Makefile.in.orig	Tue Dec  9 07:36:07 2003
+++ packaging_tools/Makefile.in	Thu Feb 26 09:49:04 2004
@@ -847,8 +847,10 @@
 		$(mkinstalldirs) $(DESTDIR)man/man1; \
 		list='$(sbin_SCRIPTS)'; for p in $$list; do \
 	  		script=`echo $$p | sed 's!perl/scripts/!!'`; \
-	  		echo "Generating $(DESTDIR)$(prefix)/man/man1/$$script.1"; \
-	  		$(POD2MAN) $$p > $(DESTDIR)$(prefix)/man/man1/$$script.1; \
+			if /usr/bin/grep -q ^=cut $$p; then \
+	  			echo "Generating $(DESTDIR)$(prefix)/man/man1/$$script.1"; \
+	  			$(POD2MAN) $$p > $(DESTDIR)$(prefix)/man/man1/$$script.1; \
+			fi; \
 		done \
 	else \
 		echo "Skipping Man page installation"; \