make-image-header: set -e so that errors are noticed
[profile/ivi/psplash.git] / make-image-header.sh
1 #!/bin/sh
2
3 set -e
4
5 imageh=`basename $1 .png`-img.h
6 name="${2}_IMG"
7 gdk-pixbuf-csource --macros $1 > $imageh.tmp
8 sed -e "s/MY_PIXBUF/${name}/g" -e "s/guint8/uint8/g" $imageh.tmp > $imageh && rm $imageh.tmp
9
10