]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- detect BuildArch from specfile and enforce --target (as for --target noarch some...
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 10 Sep 2005 11:54:42 +0000 (11:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.328

builder.sh

index 1342533b835ab6f0dac8ad6ed197ff013367734e..3c1edbc5dd4da7c80f40d2ea52b590834dfbff14 100644 (file)
@@ -1636,6 +1636,13 @@ if [ -n "$DEBUG" ]; then
        set -v;
 fi
 
+if [ -n "$SPECFILE" ] && [ -z "$TARGET" ]; then
+        tmp=$(awk  '/^BuildArch:/ { print $NF}' $SPECFILE)
+        if [ "$tmp" ]; then
+                 TARGET="$tmp"
+        fi
+fi
+
 if [ -n "$TARGET" ]; then
        case "$RPMBUILD" in
                "rpmbuild")
This page took 0.053377 seconds and 4 git commands to generate.