git » base-pkgbuilds.git » main » tree

[main] / mpkg.sh

#!/bin/sh
set -e
if [ -z "$CARCH" ]; then
	CARCH=armv7h
fi
export CARCH
echo "mpkg.sh: $1 $2 for $CARCH"
[ -e .git ] && mv .git .githidden
chown -R builder:builder $1
cd $1
[ -e .git ] && mv .git .githidden
set +e
if [ -x custom-build.sh ]; then
	./custom-build.sh $1 $2
	R=$?
else
	../pkg-spawner.sh $1 $2 && ../pkg-repo.sh && echo $1 >> ../$CARCH-built-order
	R=$?
fi
[ -e .githidden ] && mv .githidden .git
cd ..
[ -e .githidden ] && mv .githidden .git
exit $R