]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- pear demacros
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 24 Aug 2010 09:28:44 +0000 (09:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.467

adapter.awk

index 06a25f14c5f08314a1a48f1f1e335fd0c4c0381a..ae2337b3e02ff2bb1c024cab4ba57b72f9f20d0c 100644 (file)
@@ -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);
        }
This page took 0.457364 seconds and 4 git commands to generate.