]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- don't discriminate th devils
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 9 Dec 2006 15:18:30 +0000 (15:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-build.sh -> 1.12

rpm-build.sh

index 1a976c00bcf01e6bf2b2e19e7f25613a1eaaf02b..9c71e5d90eac3ee765a13eb21a59f5d9a896219d 100644 (file)
@@ -10,6 +10,9 @@ alias ac-tag='./builder -cf -T AC-branch -r HEAD'
 alias adif="dif -x '*.m4' -x ltmain.sh -x install-sh -x depcomp -x 'Makefile.in' -x compile -x 'config.*' -x configure -x missing -x mkinstalldirs -x autom4te.cache"
 alias pclean="sed -i~ -e '/^\(?\|=\+$\|unchanged:\|diff\|only\|Only\|Files\|Common\|Index:\|RCS file\|retrieving\)/d'"
 
+# set $distro, used by functions below
+[ -n "$distro" ] || distro=$(awk '{print tolower($NF)}' /etc/pld-release 2>/dev/null | tr -d '()')
+
 # merges two patches
 # requires: patchutils
 pmerge() {
@@ -63,7 +66,7 @@ autotag() {
        local out
        for a in "$@"; do
                s=${a%.spec}.spec
-               out=$(cvs status -v $s | awk '/auto-ac-/{if (!a++) print $1}')
+               out=$(cvs status -v $s | awk "/auto-$distro-/{if (!a++) print \$1}")
                echo "$s:$out"
        done
 }
This page took 0.034588 seconds and 4 git commands to generate.