Files
Arch-R/tools/mkpkg/mkpkg_audiodecoder.wsr
T

42 lines
1.5 KiB
Bash
Raw Normal View History

2015-04-06 12:40:35 +02:00
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2016-01-02 17:26:42 +01:00
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
2015-04-06 12:40:35 +02:00
#
2016-01-02 17:26:42 +01:00
# OpenELEC is free software: you can redistribute it and/or modify
2015-04-06 12:40:35 +02:00
# it under the terms of the GNU General Public License as published by
2016-01-02 17:26:42 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2015-04-06 12:40:35 +02:00
#
2016-01-02 17:26:42 +01:00
# OpenELEC is distributed in the hope that it will be useful,
2015-04-06 12:40:35 +02:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2016-01-02 17:26:42 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2015-04-06 12:40:35 +02:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2016-01-02 17:26:42 +01:00
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
2015-04-06 12:40:35 +02:00
################################################################################
echo "getting sources..."
if [ ! -d audiodecoder.wsr.git ]; then
git clone https://github.com/notspiff/audiodecoder.wsr.git audiodecoder.wsr.git
fi
cd audiodecoder.wsr.git
git pull
GIT_REV=`git log -n1 --format=%h`
cd ..
echo "copying sources..."
rm -rf audiodecoder.wsr-$GIT_REV
cp -R audiodecoder.wsr.git audiodecoder.wsr-$GIT_REV
echo "cleaning sources..."
rm -rf audiodecoder.wsr-$GIT_REV/.git
echo "packing sources..."
tar cvJf audiodecoder.wsr-$GIT_REV.tar.xz audiodecoder.wsr-$GIT_REV
echo "remove temporary sourcedir..."
rm -rf audiodecoder.wsr-$GIT_REV