- 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
#!/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 {
gsub("%{prefix}/info", "%{_infodir}")
gsub("%{_prefix}/info", "%{_infodir}")
- gsub(prefix, "%{_prefix}")
- gsub("%{prefix}", "%{_prefix}")
+ if (prefix != "/") {
+ gsub(prefix, "%{_prefix}")
+ gsub("%{prefix}", "%{_prefix}")
+ }
}
+