common Makefile.common,1.73,1.74

Mike Bonnet (mikeb) fedora-extras-commits at redhat.com
Tue Aug 7 19:48:50 UTC 2007


Author: mikeb

Update of /cvs/pkgs/common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11257

Modified Files:
	Makefile.common 
Log Message:
unused-fedora-patches command, courtesy of cebbert


Index: Makefile.common
===================================================================
RCS file: /cvs/pkgs/common/Makefile.common,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- Makefile.common	24 Jul 2007 17:10:44 -0000	1.73
+++ Makefile.common	7 Aug 2007 19:48:20 -0000	1.74
@@ -538,6 +538,7 @@
 	@echo "	patch SUFFIX=<suff>	Create and add a gendiff patch file"
 	@echo "	rediff SUFFIX=<suff>	Recreates a gendiff patch file, retaining comments"
 	@echo "	unused-patches		Print list of patches not referenced by name in specfile"
+	@echo "	unused-fedora-patches   Print Fedora patches not used by Patch and/or ApplyPatch directives"
 	@echo "	gimmespec		Print the name of the specfile"
 
 gimmespec:
@@ -546,6 +547,9 @@
 unused-patches:
 	@for f in *.patch; do if [ -e $$f ]; then grep -q $$f $(SPECFILE) || echo $$f; fi; done
 
+unused-fedora-patches:
+	@for f in *.patch; do if [ -e $$f ]; then (egrep -q "^Patch[[:digit:]]+:[[:space:]]+$$f" $(SPECFILE) || echo "Unused:    $$f") && egrep -q "^ApplyPatch[[:space:]]+$$f" $(SPECFILE) || echo "Unapplied: $$f"; fi; done
+
 ##################### EXPERIMENTAL ##########################
 # this stuff is very experimental in nature and should not be
 # relied upon until these targets are moved above this line




More information about the fedora-extras-commits mailing list