commit 4f822e222d20da1382c3b570409561583bd745bf
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Aug 23 20:34:51 2005 +0000

    - replace name and version with macros in %setup. req by PaSzCzUs
    
    Changed files:
        adapter.awk -> 1.172

 adapter.awk | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 470d1a0..d8fe1d0 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -206,6 +206,11 @@ preamble == 1 {
                sub(/^%setup/, "%setup -q")
        }
 
+       if (/^%setup/) {
+               gsub(name, "%{name}");
+               gsub(version, "%{version}");
+       }
+
        if (/^%setup/ && /-n %{name}-%{version}( |$)/) {
                sub(/ -n %{name}-%{version}/, "")
        }
================================================================

---- 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