[packages/adapter: 213/631] - capitalize URL - macros subst without braces

glen glen at pld-linux.org
Mon Sep 12 19:52:19 CEST 2016


commit 89b1cd557f0545126f473a0eaa8a90e26bd945a5
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Oct 22 12:22:26 2005 +0000

    - capitalize URL
    - macros subst without braces
    
    Changed files:
        adapter.awk -> 1.204

 adapter.awk | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 84f424d..9571ea1 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -569,6 +569,10 @@ preamble == 1 {
 	if (field ~ /serial:/)
 		$1 = "Epoch:"
 
+	# proper caps
+	if (field ~ /url:/)
+		$1 = "URL:"
+
 	# Use %{name} and %{version} in the filenames in "Source:"
 	if (field ~ /^source/ || field ~ /patch/) {
 		n = split($2, url, /\//)
@@ -840,6 +844,9 @@ function use_macros()
 		gsub(datadir, "%{_datadir}", $c)
 	}
 
+	gsub("%_sbindir", "%{_sbindir}")
+	gsub("%_mandir", "%{_mandir}")
+	gsub("%name", "%{name}")
 
 	gsub("%{prefix}/share", "%{_datadir}")
 	if (prefix"/share" == datadir)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list