make: VERSION variable can be set either via git or the VERSION file

Change up the shell line so that it can fallback on the VERSION file
if building without a Git repository (eg, from a release tarball).

Additionally, change the titlepic generation so that it uses this
single instance of setting VERSION rather than doing its own thing.
This commit is contained in:
Mike Swanson 2014-01-22 19:32:25 -08:00
parent be70a52bec
commit 706633ec59
2 changed files with 2 additions and 4 deletions

View file

@ -1,7 +1,5 @@
#!/bin/sh
VERSION=`git describe` || VERSION=`cat ../../VERSION`
convert titlepic.gif -fill white -font Helvetica-Bold \
-draw "image over 94,2 0,0 '$1'" \
-pointsize 20 \