Files @ cf4f965e2938
Branch filter:

Location: freifunk/Firmware-building/build_script/freifunk_user.sh

x
Add scripts for automation of building and build machine setup

This allows us to use a powerful Hetzner VM for not very long to
build our firmware in almost no time.
#!/usr/bin/env bash
BRANCH=$1
EXPERIMENTAL="experimental"
AUTOUPDATER_VER=${2:-$EXPERIMENTAL}
if [ -z $BRANCH ]; then
	echo "Usage: freifunk_user.sh [branch] (updater_version)"
	echo ""
	echo "branch: gluon release branch"
	echo "updater_version: experimental, beta, stable. defaults to experimental"
	exit 1
fi
git clone ssh://kallithea@projects.c3l.lu/freifunk/Firmware-building
git clone https://github.com/freifunk-gluon/gluon.git gluon -b "$BRANCH"
ln -vs /home/user/Firmware-building/site_config/"${AUTOUPDATER_VER}"/site /home/user/gluon/site
pushd /home/user/gluon/
make update
popd