commit f5f6280a96f0e27c3900994a510af9da75909de3
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Aug 24 09:28:44 2010 +0000

    - pear demacros
    
    Changed files:
        adapter.awk -> 1.467

 adapter.awk | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 06a25f1..ae2337b 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -236,6 +236,8 @@ function b_makekey(a, b,    s) {
 
        if ($2 ~ /^mod_name$/)
                mod_name = $3
+       if ($2 ~ /^_?pearname$/)
+               pearname = $3
 
        sub(/[ \t]+$/, "");
        # do nothing further, otherwise adapter thinks we're at preamble
@@ -1667,6 +1669,12 @@ function demacroize(str)
        if (mod_name) {
                sub("%{mod_name}", mod_name, str);
        }
+       if (pearname) {
+               sub("%{_pearname}", pearname, str);
+       }
+       if (pearname) {
+               sub("%{pearname}", pearname, str);
+       }
        if (name) {
                sub("%{name}", name, str);
        }
================================================================

---- gitweb:

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to