File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lrzsz / buildrpm
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Oct 24 15:49:50 2019 UTC (5 years ago) by misho
CVS tags: MAIN, HEAD
Initial revision

    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>