mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
tools/mkpkg: add script to download and pack SickBeard
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
f48017667f
commit
3034d01846
@ -20,25 +20,24 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
echo "getting sources..."
|
echo "getting sources..."
|
||||||
if [ ! -d sickbeard.git ]; then
|
if [ ! -d SickBeard.git ]; then
|
||||||
git clone git://github.com/midgetspy/Sick-Beard.git sickbeard.git
|
git clone git://github.com/midgetspy/Sick-Beard.git SickBeard.git
|
||||||
GIT_REV=`git log -n1 --format=%h`
|
|
||||||
else
|
|
||||||
cd sickbeard.git
|
|
||||||
git pull
|
|
||||||
GIT_REV=`git log -n1 --format=%h`
|
|
||||||
cd ..
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd SickBeard.git
|
||||||
|
git pull
|
||||||
|
GIT_REV=`git log -n1 --format=%h`
|
||||||
|
cd ..
|
||||||
|
|
||||||
echo "copying sources..."
|
echo "copying sources..."
|
||||||
rm -rf sickbeard-$GIT_REV
|
rm -rf SickBeard-$GIT_REV
|
||||||
cp -R sickbeard.git sickbeard-$GIT_REV
|
cp -R SickBeard.git SickBeard-$GIT_REV
|
||||||
|
|
||||||
echo "cleaning sources..."
|
echo "cleaning sources..."
|
||||||
rm -rf sickbeard-$GIT_REV/.git
|
rm -rf SickBeard-$GIT_REV/.git
|
||||||
|
|
||||||
echo "packing sources..."
|
echo "packing sources..."
|
||||||
tar cvjf sickbeard-$GIT_REV.tar.bz2 sickbeard-$GIT_REV
|
tar cvjf SickBeard-$GIT_REV.tar.bz2 SickBeard-$GIT_REV
|
||||||
|
|
||||||
echo "remove temporary sourcedir..."
|
echo "remove temporary sourcedir..."
|
||||||
rm -rf sickbeard-$GIT_REV
|
rm -rf SickBeard-$GIT_REV
|
||||||
|
Loading…
x
Reference in New Issue
Block a user