1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/tools/mkpkg/mkpkg_rtmpdump

29 lines
682 B
Plaintext
Raw Normal View History

#!/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)
echo "getting sources..."
if [ ! -d rtmpdump.git ]; then
git clone git://git.ffmpeg.org/rtmpdump rtmpdump.git
fi
cd rtmpdump.git
git pull
2018-08-25 05:04:15 +01:00
GIT_REV=`git log -n1 --format=%H`
cd ..
echo "copying sources..."
rm -rf rtmpdump-$GIT_REV
cp -R rtmpdump.git rtmpdump-$GIT_REV
echo "cleaning sources..."
rm -rf rtmpdump-$GIT_REV/.git
echo "packing sources..."
tar cvJf rtmpdump-$GIT_REV.tar.xz rtmpdump-$GIT_REV
echo "remove temporary sourcedir..."
rm -rf rtmpdump-$GIT_REV