mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
mkpkg: Get proper git revision number and save it to git.version file in source packages
This commit is contained in:
parent
77eb52bae6
commit
8514f436a9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user