File get-git.sh of Package ipxe
#!/bin/sh
#
set -x
GIT_URL=git://git.ipxe.org/ipxe.git
PKG_NAME=ipxe
if ! [ -d $PKG_NAME ]; then
git clone $GIT_URL $PKG_NAME
fi
cd $PKG_NAME
VER=$(git describe --tags)
case $VER in
v*) VER=${VER:1}
VER=${VER//-/_}
;;
*) echo "ERROR, no vXXX tag? $VER"
exit 1
;;
esac
git archive --format=tar.gz --prefix=ipxe-$VER/ -o ../ipxe-$VER.tar.gz master
cd ..
bznew ipxe-$VER.tar.gz