]> git.pld-linux.org Git - packages/adapter.git/commitdiff
version 0.11
authorkura <kura@pld-linux.org>
Sat, 26 Feb 2000 01:50:30 +0000 (01:50 +0000)
committerkura <kura@pld-linux.org>
Sat, 26 Feb 2000 01:50:30 +0000 (01:50 +0000)
- 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

index c621da93137030de3a1287f284f1f116e5798a82..090dc826156b40daa16c12c65b2d10357ecf367e 100644 (file)
@@ -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@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}")
+       }
 }
+
This page took 0.092634 seconds and 4 git commands to generate.