Hi,

for those using mach locally a small helper script which does simplify
rebuilding source rpms. Nothing major though ;) .

Just paste it to a file of your choice ( and in your path) and make it
executable (chmod +x %path_to_file)

>>>

#!/bin/bash -x

TOP_DIR=`pwd`

[ -z "$1" ] && exit 0
[ ! -f "$TOP_DIR/$1/${1}.spec" ] && exit 0

rm -f $TOP_DIR/SOURCES
ln -s $TOP_DIR/$1 $TOP_DIR/SOURCES
mkdir -p $TOP_DIR/SRPMS

rpmbuild -bs --nodeps --define _topdir$TOP_DIR $TOP_DIR/$1/$1.spec
rm -f $TOP_DIR/SOURCES


<<<<

regards

--
Tobias Gerschner
Member of Board of Yoper Ltd. NZ

Knowing is not enough; we must apply. Willing is not enough; we must do.
_______________________________________________
yoper-dev mailing list
[email protected]
https://morpheus.pingos.org/cgi-bin/mailman/listinfo/yoper-dev

Reply via email to