3 HEAD=`git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16`
4 BRANCH=`git branch | grep ^\* | cut -d' ' -f2`
5 VERSION=-$BRANCH\_$HEAD
8 make -s ARCH=arm CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- gta02v5_config
9 make -s ARCH=arm CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- u-boot.udfu
10 if [ $? -eq 0 ] ; then
11 rm -f u-boot-gta02v5v6*
12 cp u-boot.udfu u-boot-gta02v5v6$VERSION.udfu