1fe907
#!/bin/sh
1fe907
1fe907
DIRNAME=pixman-$( date +%Y%m%d )
1fe907
1fe907
rm -rf $DIRNAME
1fe907
git clone git://git.freedesktop.org/git/pixman $DIRNAME
1fe907
cd $DIRNAME
1fe907
if [ -z "$1" ]; then
1fe907
    git log | head -1
1fe907
else
1fe907
    git checkout $1
1fe907
fi
1fe907
rm -rf .git
1fe907
cd ..
1fe907
tar jcf $DIRNAME.tar.bz2 $DIRNAME
1fe907
rm -rf $DIRNAME