Update readme

This commit is contained in:
Neale Pickett 2015-07-06 18:34:20 -06:00
parent b4db27087c
commit 27a7491809
2 changed files with 14 additions and 4 deletions

View File

@ -1,2 +1,8 @@
# HelveticaFace # FontFace
Helvetica Font Watch Face for Pebble Watch Face for Pebble, like the built-in "Simplicity",
but with a better font.
This project actually builds a whole lot of .pbw files,
each with the same functionality but different appearance.
I like fonts, okay.

View File

@ -3,15 +3,19 @@
echo PATH=$PATH:$HOME/pebble-dev/PebbleSDK-3.1/bin echo PATH=$PATH:$HOME/pebble-dev/PebbleSDK-3.1/bin
cd $(dirname $0) cd $(dirname $0)
mkdir -p pbw
build () { build () {
font=$1 font=$1
color=$2 color=$2
uuid=$3 uuid=$3
name=${font}Face-$color name=${font}Face-$color
tgt=pbw/$name.pbw
sed "s/%COLOR/$color/;s/%FONT/$font/;s/%UUID/$uuid/" appinfo.json.tmpl > appinfo.json sed "s/%COLOR/$color/;s/%FONT/$font/;s/%UUID/$uuid/" appinfo.json.tmpl > appinfo.json
pebble build pebble build
cp build/FontFace.pbw $name.pbw cp build/FontFace.pbw $tgt
echo $name.pbw echo $tgt
} }
if [ -n "$1" ]; then if [ -n "$1" ]; then