2016-04-18 00:50:57 -07:00
|
|
|
#!/bin/sh
|
2018-07-16 20:45:36 +02:00
|
|
|
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2018-08-25 05:04:15 +01:00
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2016-04-18 00:50:57 -07:00
|
|
|
|
|
|
|
echo "getting sources..."
|
|
|
|
if [ ! -d libcec.git ]; then
|
|
|
|
git clone --depth=1 https://github.com/Pulse-Eight/libcec.git libcec.git
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd libcec.git
|
|
|
|
git pull
|
2018-08-25 05:04:15 +01:00
|
|
|
GIT_REV=`git log -n1 --format=%H`
|
2016-04-18 00:50:57 -07:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
echo "copying sources..."
|
|
|
|
rm -rf libcec-$GIT_REV
|
|
|
|
cp -R libcec.git libcec-$GIT_REV
|
|
|
|
|
|
|
|
echo "cleaning sources..."
|
|
|
|
rm -rf libcec-$GIT_REV/.git
|
|
|
|
|
|
|
|
echo "packing sources..."
|
|
|
|
tar cvJf libcec-$GIT_REV.tar.xz libcec-$GIT_REV
|
|
|
|
|
|
|
|
echo "remove temporary sourcedir..."
|
|
|
|
rm -rf libcec-$GIT_REV
|