commit efd2d6681b07b3ec6b45044351bac206871b65a8
Author: kura <[email protected]>
Date:   Sat Feb 26 01:50:30 2000 +0000

    version 0.11
    - Jeszcze sporo wody w sedesie upłynie zanim to będzie 1.0 ;-)
    - Prefix path is replaced by %{_prefix} only if %{_prefix} is not equal to 
"/"
      (it protects us from replacing all slashes with macro)
    
    Changed files:
        adapter.awk -> 1.22

 adapter.awk | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index c621da9..090dc82 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1,6 +1,6 @@
 #!/bin/awk -f
 #
-# This is adapter v1.0. Adapter adapts .spec files for PLD.
+# This is adapter v0.11. Adapter adapts .spec files for PLD.
 # Copyright (C) 1999 Micha� Kuratczyk <[email protected]>
 
 BEGIN {
@@ -366,6 +366,9 @@ function use_macros()
        gsub("%{prefix}/info", "%{_infodir}")
        gsub("%{_prefix}/info", "%{_infodir}")
 
-       gsub(prefix, "%{_prefix}")
-       gsub("%{prefix}", "%{_prefix}")
+       if (prefix != "/") {
+               gsub(prefix, "%{_prefix}")
+               gsub("%{prefix}", "%{_prefix}")
+       }
 }
+
================================================================

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