]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- Honours redefinitions of "_prefix". E.g. will not replace "/usr/bin" with
authormkochano <mkochano@pld-linux.org>
Sat, 3 Jun 2000 22:11:37 +0000 (22:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  "%{_bindir}" if "_prefix" is defined as "/usr/X11R6".

Changed files:
    adapter.awk -> 1.58

adapter.awk

index f639e018ad9b2574422ed5ad77dde9c85cf82db4..98c9e3b3786c7a8ef8622ee13ca72ec926d86088 100644 (file)
@@ -280,6 +280,11 @@ preamble == 1 {
        if ($1 ~ /%define/) {
                # Do not add %define of _prefix if it already is.
                if ($2 ~ /_prefix/) {
+                       sub("^"prefix, $3, bindir)
+                       sub("^"prefix, $3, sbindir)
+                       sub("^"prefix, $3, libdir)
+                       sub("^"prefix, $3, datadir)
+                       sub("^"prefix, $3, includedir)
                        prefix = $3
                        x11 = 2
                }
This page took 0.029248 seconds and 4 git commands to generate.