mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
make package scripts for getting git sources from opdenkamp & tvheadend
This commit is contained in:
parent
6179688247
commit
d50cc4caf9
@ -24,20 +24,10 @@ MKPKG_TMP="$MKPKG_CURRENTPATH/mkpkg-temp"
|
|||||||
|
|
||||||
mkdir -p $MKPKG_TMP
|
mkdir -p $MKPKG_TMP
|
||||||
cd $MKPKG_TMP
|
cd $MKPKG_TMP
|
||||||
|
mkdir -p dest
|
||||||
|
|
||||||
echo "deleteing old revisions..."
|
echo "deleteing old revisions..."
|
||||||
ls $MKPKG_TMP | \
|
rm -Rf dest/tvheadend*
|
||||||
while read I; do
|
|
||||||
if [ -f "${I}" ] ; then
|
|
||||||
case "${I}" in
|
|
||||||
tvheadend.tar.bz2) rm "${I}";;
|
|
||||||
esac
|
|
||||||
elif [ -d "${I}" ] ; then
|
|
||||||
case "${I}" in
|
|
||||||
tvheadend) rm -Rf "${I}";;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "getting sources if needed (or update only)"
|
echo "getting sources if needed (or update only)"
|
||||||
if [ ! -d tvheadend ]; then
|
if [ ! -d tvheadend ]; then
|
||||||
@ -53,8 +43,14 @@ echo "getting version..."
|
|||||||
cd tvheadend
|
cd tvheadend
|
||||||
REV=$(git rev-parse --short HEAD)
|
REV=$(git rev-parse --short HEAD)
|
||||||
cd $MKPKG_TMP
|
cd $MKPKG_TMP
|
||||||
|
|
||||||
|
echo "create repo for packaging tvheadend -> tvheadend-$REV"
|
||||||
|
cp -R tvheadend tvheadend-$REV
|
||||||
|
|
||||||
echo "packing sources..."
|
echo "packing sources..."
|
||||||
tar cvjf tvheadend-$REV.tar.bz2 tvheadend
|
tar cvjf dest/tvheadend-$REV.tar.bz2 --exclude ".git" --exclude ".gitignore" tvheadend-$REV
|
||||||
|
|
||||||
|
echo "CLEANUP"
|
||||||
|
rm -Rf tvheadend-$REV
|
||||||
|
|
||||||
cd $MKPKG_CURRENTPATH
|
cd $MKPKG_CURRENTPATH
|
Loading…
x
Reference in New Issue
Block a user