SPECS: adapter.awk - leave sed -i -e lines alone

glen glen at pld-linux.org
Fri Feb 17 17:16:57 CET 2006


Author: glen                         Date: Fri Feb 17 16:16:57 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- leave sed -i -e lines alone

---- Files affected:
SPECS:
   adapter.awk (1.278 -> 1.279) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.278 SPECS/adapter.awk:1.279
--- SPECS/adapter.awk:1.278	Thu Feb 16 21:26:14 2006
+++ SPECS/adapter.awk	Fri Feb 17 17:16:52 2006
@@ -888,6 +888,11 @@
 		return
 	}
 
+	# leave inline sed lines alone
+	if (/(%{__sed}|sed) -i -e/) {
+		return;
+	}
+
 	gsub(perl_sitearch, "%{perl_sitearch}")
 	gsub(perl_archlib, "%{perl_archlib}")
 	gsub(perl_privlib, "%{perl_privlib}")
@@ -900,7 +905,7 @@
 
 	gsub(bindir, "%{_bindir}")
 	gsub("%{prefix}/bin", "%{_bindir}")
-	if(prefix"/bin" == bindir)
+	if (prefix"/bin" == bindir)
 		gsub("%{_prefix}/bin", "%{_bindir}")
 
 	for (c = 1; c <= NF; c++) {
================================================================

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



More information about the pld-cvs-commit mailing list