mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
mkpkg_tvheadend: simplyfing
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d50cc4caf9
commit
db681808c6
@ -19,38 +19,25 @@
|
|||||||
# http://www.gnu.org/copyleft/gpl.html
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
MKPKG_CURRENTPATH=$(pwd)
|
echo "getting sources..."
|
||||||
MKPKG_TMP="$MKPKG_CURRENTPATH/mkpkg-temp"
|
if [ ! -d hts-tvheadend.git ]; then
|
||||||
|
git clone https://github.com/andoma/tvheadend.git hts-tvheadend.git
|
||||||
mkdir -p $MKPKG_TMP
|
|
||||||
cd $MKPKG_TMP
|
|
||||||
mkdir -p dest
|
|
||||||
|
|
||||||
echo "deleteing old revisions..."
|
|
||||||
rm -Rf dest/tvheadend*
|
|
||||||
|
|
||||||
echo "getting sources if needed (or update only)"
|
|
||||||
if [ ! -d tvheadend ]; then
|
|
||||||
git clone git://github.com/andoma/tvheadend.git tvheadend
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "updateing revision..."
|
cd hts-tvheadend.git
|
||||||
cd tvheadend
|
|
||||||
git pull
|
git pull
|
||||||
cd $MKPKG_TMP
|
GIT_REV=`git log -n1 --format=%h`
|
||||||
|
cd ..
|
||||||
|
|
||||||
echo "getting version..."
|
echo "copying sources..."
|
||||||
cd tvheadend
|
rm -rf hts-tvheadend-$GIT_REV
|
||||||
REV=$(git rev-parse --short HEAD)
|
cp -R hts-tvheadend.git hts-tvheadend-$GIT_REV
|
||||||
cd $MKPKG_TMP
|
|
||||||
|
|
||||||
echo "create repo for packaging tvheadend -> tvheadend-$REV"
|
echo "cleaning sources..."
|
||||||
cp -R tvheadend tvheadend-$REV
|
rm -rf hts-tvheadend-$GIT_REV/.git
|
||||||
|
|
||||||
echo "packing sources..."
|
echo "packing sources..."
|
||||||
tar cvjf dest/tvheadend-$REV.tar.bz2 --exclude ".git" --exclude ".gitignore" tvheadend-$REV
|
tar cvjf hts-tvheadend-$GIT_REV.tar.bz2 hts-tvheadend-$GIT_REV
|
||||||
|
|
||||||
echo "CLEANUP"
|
echo "remove temporary sourcedir..."
|
||||||
rm -Rf tvheadend-$REV
|
rm -rf hts-tvheadend-$GIT_REV
|
||||||
|
|
||||||
cd $MKPKG_CURRENTPATH
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user