mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
tools/mkpkg: change mkpkg script to check out 'xbmc-pvr-addons' for xbmc-master
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d3ca79d559
commit
b2afc0cbef
@ -20,24 +20,24 @@
|
||||
################################################################################
|
||||
|
||||
echo "getting sources..."
|
||||
if [ ! -d xbmc-pvr-addons.git ]; then
|
||||
git clone git://github.com/opdenkamp/xbmc-pvr-addons.git xbmc-pvr-addons.git
|
||||
if [ ! -d xbmc-pvr-addons-master.git ]; then
|
||||
git clone git://github.com/opdenkamp/xbmc-pvr-addons.git -b master xbmc-pvr-addons-master.git
|
||||
fi
|
||||
|
||||
cd xbmc-pvr-addons.git
|
||||
cd xbmc-pvr-addons-master.git
|
||||
git pull
|
||||
GIT_REV=`git log -n1 --format=%h`
|
||||
cd ..
|
||||
|
||||
echo "copying sources..."
|
||||
rm -rf xbmc-pvr-addons-$GIT_REV
|
||||
cp -R xbmc-pvr-addons.git xbmc-pvr-addons-$GIT_REV
|
||||
rm -rf xbmc-pvr-addons-master-$GIT_REV
|
||||
cp -R xbmc-pvr-addons-master.git xbmc-pvr-addons-master-$GIT_REV
|
||||
|
||||
echo "cleaning sources..."
|
||||
rm -rf xbmc-pvr-addons-$GIT_REV/.git
|
||||
rm -rf xbmc-pvr-addons-master-$GIT_REV/.git
|
||||
|
||||
echo "packing sources..."
|
||||
tar cvJf xbmc-pvr-addons-$GIT_REV.tar.xz xbmc-pvr-addons-$GIT_REV
|
||||
tar cvJf xbmc-pvr-addons-master-$GIT_REV.tar.xz xbmc-pvr-addons-master-$GIT_REV
|
||||
|
||||
echo "remove temporary sourcedir..."
|
||||
rm -rf xbmc-pvr-addons-$GIT_REV
|
||||
rm -rf xbmc-pvr-addons-master-$GIT_REV
|
||||
|
Loading…
x
Reference in New Issue
Block a user