Annotation of embedaddon/lrzsz/buildrpm, revision 1.1

1.1     ! misho       1: #! /bin/sh
        !             2: set -x
        !             3: srcdir=$1
        !             4: 
        !             5: arch=`rpm --showrc --rcfile $srcdir/rpmrc | awk '/^build arch/ {print $4}'`
        !             6: if test "x$arch" = "x" ; then
        !             7:        echo "cannot determinate architecture" >&2
        !             8:        exit 1
        !             9: fi
        !            10: mkdir $arch 2>/dev/null
        !            11: didmkdir=$?
        !            12: rpm -ba --rcfile $srcdir/rpmrc Specfile 
        !            13: ec=$?
        !            14: if test $ec ; then
        !            15:        mv $arch/* . 
        !            16:        ec=$?
        !            17: fi
        !            18: if test $didmkdir ; then
        !            19:        rmdir $arch
        !            20: fi
        !            21: exit $ec

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>