mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
mkpkg_kodi: Allow a specific git rev to be used
This commit is contained in:
parent
da2b9e6e2b
commit
0dfd031249
@ -18,13 +18,14 @@
|
||||
################################################################################
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <branch-name>"
|
||||
echo "Usage: $0 <branch-name> [git-rev]"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
PKG_NAME="kodi"
|
||||
PKG_VERSION=""
|
||||
BRANCH="$1"
|
||||
GIT_REV="$2"
|
||||
GIT_REPO="git://github.com/xbmc/xbmc.git"
|
||||
DEST_DIR="$PKG_NAME-$BRANCH"
|
||||
|
||||
@ -36,6 +37,9 @@ echo "getting sources..."
|
||||
cd $DEST_DIR.git
|
||||
git pull
|
||||
|
||||
# use a specific git rev, rather than HEAD
|
||||
[ -n "$GIT_REV" ] && git reset --hard $GIT_REV
|
||||
|
||||
echo "getting version..."
|
||||
GIT_HASH=`git log -n1 --format=%h`
|
||||
VERSION_MAJOR=$(grep ^VERSION_MAJOR version.txt | cut -d" " -f2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user