[packages/adapter: 22/631] version 0.11 - Jeszcze sporo wody w sedesie upłynie zanim to będzie 1.0 ;-) - Prefix path is replace

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


commit efd2d6681b07b3ec6b45044351bac206871b65a8
Author: kura <kura at pld-linux.org>
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 <kura at pld.org.pl>
 
 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



More information about the pld-cvs-commit mailing list