make package scripts for getting git sources from opdenkamp & tvheadend

This commit is contained in:
Colossus 2011-04-24 15:00:01 +02:00 committed by Stephan Raue
parent 6179688247
commit d50cc4caf9

View File

@ -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