Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 22 lines (17 sloc) 0.366 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/bin/bash

if test $# -lt 3; then
  echo "Usage: make-ioio-bundle dist-dir out config1 config2 ..."
  exit 1
fi

ZIP=zip
DISTDIR=$1
OUT=$2

configs=("$@")
configs=("${configs[@]:2}")

i=0
for config in "${configs[@]}"; do
  echo $config
  cp $DISTDIR/$config/production/*.hex /tmp/$config.hex
  results[$((i++))]=/tmp/$config.hex
done

$ZIP -j $OUT ${results[@]}
Something went wrong with that request. Please try again.