#! /bin/sh -e echo PATH=$PATH:$HOME/pebble-dev/PebbleSDK-3.1/bin cd $(dirname $0) mkdir -p pbw build () { font=$1 color=$2 uuid=$3 name=${font}Face-$color tgt=pbw/$name.pbw sed "s/%COLOR/$color/;s/%FONT/$font/;s/%UUID/$uuid/" appinfo.json.tmpl > appinfo.json pebble build cp build/FontFace.pbw $tgt echo $tgt } if [ -n "$1" ]; then pbw=$(build $1 White 879db5ec-8bfc-41ca-8988-96da8ae23d14) pebble install $pbw else while read font color uuid; do build $font $color $uuid done <