mkpkg: Get proper git revision number and save it to git.version file in source packages

This commit is contained in:
Gujs 2011-01-23 17:46:41 +01:00
parent 77eb52bae6
commit 8514f436a9

View File

@ -27,12 +27,13 @@ echo "getting sources..."
git checkout 10.0-Dharma-pvr
echo "getting version..."
GIT_REV=`git shortlog | grep -E '^[ ]+\w+' | wc -l`
GIT_REV=`git log -n1 --format=%h`
echo $GIT_REV
echo "exporting sources..."
git checkout-index -a -f --prefix=../xbmc-pvr-$REV/
cd ..
echo "$GIT_REV" > xbmc-pvr-$REV/git.version
echo "seperating theme..."
rm -rf xbmc-pvr-theme-Confluence-$REV