Skip to content
Snippets Groups Projects
build-ar71xx-generic.sh 513 B
Newer Older
Johannes Rudolph's avatar
Johannes Rudolph committed
#!/bin/sh

Clemens John's avatar
Clemens John committed
#https://stackoverflow.com/questions/2870992/automatic-exit-from-bash-shell-script-on-error
set -e

GLUON_BRANCH="$1"
GLUON_VERSION="$2"

Johannes Rudolph's avatar
Johannes Rudolph committed

# Move Files into site folder
mv i18n/ site/
mv modules site/
mv site.conf site/
mv site.mk site/
mv .git site/

# Clone Gluon repo
git clone https://github.com/freifunk-gluon/gluon.git ./gluon -b $GLUON_VERSION
mv gluon/* ./

Clemens John's avatar
Clemens John committed
make update || exit 1
make GLUON_TARGET=ar71xx-generic || exit 1
Clemens John's avatar
Clemens John committed
make manifest GLUON_BRANCH=$GLUON_BRANCH