SPECS: adapter.awk - subst %{_pre} macro

glen glen at pld-linux.org
Wed Mar 8 00:52:08 CET 2006


Author: glen                         Date: Tue Mar  7 23:52:08 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- subst %{_pre} macro

---- Files affected:
SPECS:
   adapter.awk (1.291 -> 1.292) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.291 SPECS/adapter.awk:1.292
--- SPECS/adapter.awk:1.291	Mon Mar  6 10:38:30 2006
+++ SPECS/adapter.awk	Wed Mar  8 00:52:02 2006
@@ -215,6 +215,8 @@
 		_beta = $3
 	if ($2 ~ /^_rc$/)
 		_rc = $3
+	if ($2 ~ /^_pre$/)
+		_pre = $3
 	if ($2 ~ /^_snap$/)
 		_snap = $3
 
@@ -312,6 +314,9 @@
 		if (_rc) {
 			$0 = fixedsub(_rc, "%{_rc}", $0);
 		}
+		if (_pre) {
+			$0 = fixedsub(_pre, "%{_pre}", $0);
+		}
 		if (_snap) {
 			$0 = fixedsub(_snap, "%{_snap}", $0);
 		}
@@ -776,6 +781,9 @@
 			if (_rc) {
 				url[n] = fixedsub(_rc, "%{_rc}", url[n])
 			}
+			if (_pre) {
+				url[n] = fixedsub(_pre, "%{_pre}", url[n])
+			}
 			if (_snap) {
 				url[n] = fixedsub(_snap, "%{_snap}", url[n])
 			}
@@ -1366,6 +1374,9 @@
 	}
 	if (_rc) {
 		sub("%{_rc}", _rc, str);
+	}
+	if (_pre) {
+		sub("%{_pre}", _pre, str);
 	}
 	if (_snap) {
 		sub("%{_snap}", _snap, str);
================================================================

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



More information about the pld-cvs-commit mailing list