SPECS: adapter.awk - skip making changes to commented out %files

glen glen at pld-linux.org
Fri Dec 30 14:09:27 CET 2005


Author: glen                         Date: Fri Dec 30 13:09:27 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- skip making changes to commented out %files

---- Files affected:
SPECS:
   adapter.awk (1.259 -> 1.260) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.259 SPECS/adapter.awk:1.260
--- SPECS/adapter.awk:1.259	Fri Dec 30 01:21:29 2005
+++ SPECS/adapter.awk	Fri Dec 30 14:09:21 2005
@@ -1080,6 +1080,11 @@
 {
 	use_macros()
 
+	# skip comments
+	if (/^#/) {
+		return;
+	}
+
 	gsub("^%{_sbindir}", "%attr(755,root,root) %{_sbindir}")
 	gsub("^%{_bindir}", "%attr(755,root,root) %{_bindir}")
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.259&r2=1.260&f=u



More information about the pld-cvs-commit mailing list