# Script to build ntfs-3g for several distributions using osc, the opensuse # buildservice client. Needs to be started from the checked-out directory # of a project which provides needed packages, e.g. osc co home:benkai:ntfs/NTFS-3g trap 2 exit set -ex #export BUILD_ROOT=/home/abuild/ntfs-3g-root unset BUILD_DIST export BUILD_ROOT=/dev/shm/ntfs-3g-root while read platform arch; do outdir=RPMS/$platform if [ -d $outdir/$arch ]; then echo "$outdir/$arch exist, next!" continue fi echo $platform $arch rm -rf $BUILD_ROOT time osc build --no-verify --clean $platform $arch ntfs-3g.spec mkdir -p $outdir/$arch-tmp mv $BUILD_ROOT/usr/src/*/RPMS/*/*.rpm $outdir/$arch-tmp mv $outdir/$arch-tmp $outdir/$arch done <