From d4c7ed7f7ab3891382c3a40e8a53f2f874d7daa1 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 24 Apr 2011 18:31:20 +0200 Subject: [PATCH] mkpkg_tvheadend: simplyfing Signed-off-by: Stephan Raue --- tools/mkpkg/mkpkg_tvheadend | 43 +++++++++++++------------------------ 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/tools/mkpkg/mkpkg_tvheadend b/tools/mkpkg/mkpkg_tvheadend index 358a559993..f81c7dd0ca 100755 --- a/tools/mkpkg/mkpkg_tvheadend +++ b/tools/mkpkg/mkpkg_tvheadend @@ -19,38 +19,25 @@ # http://www.gnu.org/copyleft/gpl.html ################################################################################ -MKPKG_CURRENTPATH=$(pwd) -MKPKG_TMP="$MKPKG_CURRENTPATH/mkpkg-temp" - -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 +echo "getting sources..." + if [ ! -d hts-tvheadend.git ]; then + git clone https://github.com/andoma/tvheadend.git hts-tvheadend.git fi -echo "updateing revision..." - cd tvheadend + cd hts-tvheadend.git git pull - cd $MKPKG_TMP + GIT_REV=`git log -n1 --format=%h` + cd .. -echo "getting version..." - cd tvheadend - REV=$(git rev-parse --short HEAD) - cd $MKPKG_TMP +echo "copying sources..." + rm -rf hts-tvheadend-$GIT_REV + cp -R hts-tvheadend.git hts-tvheadend-$GIT_REV + +echo "cleaning sources..." + rm -rf hts-tvheadend-$GIT_REV/.git -echo "create repo for packaging tvheadend -> tvheadend-$REV" - cp -R tvheadend tvheadend-$REV - 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" - rm -Rf tvheadend-$REV - -cd $MKPKG_CURRENTPATH \ No newline at end of file +echo "remove temporary sourcedir..." + rm -rf hts-tvheadend-$GIT_REV