Merge pull request #4196 from HiassofT/gitrev-fix

mkpkg: fix VERSION information for kodi
This commit is contained in:
Stefan Saraev 2015-06-15 14:42:07 +03:00
commit 8dffa31897

View File

@ -98,11 +98,11 @@ for addon in $DEST_DIR.git/project/cmake/addons/addons/*.* ; do
done
cd $DEST_DIR.git
GIT_REV=`git log -n1 --format=%h`
GIT_HASH=`git log -n1 --format=%h`
VERSION_MAJOR=$(grep ^VERSION_MAJOR version.txt | cut -d" " -f2)
VERSION_MINOR=$(grep ^VERSION_MINOR version.txt | cut -d" " -f2)
VERSION_TAG=$(grep ^VERSION_TAG version.txt | cut -d" " -f2 | tr A-Z a-z)
PKG_VERSION="$VERSION_MAJOR.$VERSION_MINOR-$VERSION_TAG-$GIT_REV"
PKG_VERSION="$VERSION_MAJOR.$VERSION_MINOR-$VERSION_TAG-$GIT_HASH"
echo $PKG_VERSION
cd ..