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

#! /bin/sh
set -x
srcdir=$1

arch=`rpm --showrc --rcfile $srcdir/rpmrc | awk '/^build arch/ {print $4}'`
if test "x$arch" = "x" ; then
	echo "cannot determinate architecture" >&2
	exit 1
fi
mkdir $arch 2>/dev/null
didmkdir=$?
rpm -ba --rcfile $srcdir/rpmrc Specfile 
ec=$?
if test $ec ; then
	mv $arch/* . 
	ec=$?
fi
if test $didmkdir ; then
	rmdir $arch
fi
exit $ec

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