Skip to content
Snippets Groups Projects
Commit 96ebba53 authored by Jan-Tarek Butt's avatar Jan-Tarek Butt
Browse files

add dynamic target selecting

parent 46aea9ab
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
#https://stackoverflow.com/questions/2870992/automatic-exit-from-bash-shell-script-on-error
set -e
GLUON_BRANCH="$1"
GLUON_VERSION="$2"
# Make Folder site
mkdir site
# 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/* ./
make update || exit 1
while read line; do
if [[ $line == *GluonTarget* ]]; then
targ=$(echo $line | sed -e 's/^.*GluonTarget//' -e 's/^,//' -e 's/)).*//' -e 's/[,]/-/')
make GLUON_TARGET=$targ BROKEN=1 GLUON_BRANCH=$GLUON_BRANCH || exit 1
fi;
done < "targets/targets.mk"
make manifest GLUON_BRANCH=$GLUON_BRANCH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment