Files
Arch-R/tools/mkpkg/mkpkg_linux-amlogic

42 lines
1.5 KiB
Plaintext
Raw Normal View History

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