titlepic: version from git describe if available

Use `git describe` to automatically generate the version on titlepic,
use VERSION file if not a git repository (tarball releases).
This commit is contained in:
Mike Swanson 2008-12-11 15:39:07 -08:00
parent 3671e25770
commit 95ccde2b71
2 changed files with 2 additions and 1 deletions

1
VERSION Normal file
View file

@ -0,0 +1 @@
v0.6.2

View file

@ -1,7 +1,7 @@
#!/bin/sh
DATE=`date +%Y/%m/%d`
VERSION=`cat ../../VERSION`
VERSION=`git describe` || VERSION=`cat ../../VERSION`
convert -fill white -font Helvetica-Bold \
-pointsize 30 \