Statistics
| Revision:

root / tmp / org.txm.rcp / incrust_version_in_splash.sh @ 100

History | View | Annotate | Download (504 Bytes)

1
#!/bin/bash
2
version=`cat ../org.txm.setups/trunk/VERSION`
3

    
4
which convert & which composite
5
if [ $? != 0 ]; then
6
	sudo apt-get install imagemagick
7
fi
8
date=`date +"%Y-%m-%d"`
9

    
10
echo "create label: TXM-$version ($date)"
11
convert -fill "#6d8900" -gravity center -size 240x20 -font "Courier, Bold" -pointsize 19 label:"TXM-$version ($date)" label.gif
12
composite -geometry +60+290 label.gif splash_sansversion.bmp splash-tmp.bmp
13
convert splash-tmp.bmp -colors 4294967296 splash.bmp
14
rm label.gif
15
rm splash-tmp.bmp