2013-03-13 22:12:52 +02: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)
|
2013-03-13 22:12:52 +02:00
|
|
|
|
|
|
|
echo "getting sources..."
|
2024-07-06 11:24:18 +02:00
|
|
|
svn checkout http://boblight.googlecode.com/svn/trunk/ boblightd-latest
|
2013-03-13 22:12:52 +02:00
|
|
|
|
|
|
|
echo "getting version..."
|
2024-07-06 11:24:18 +02:00
|
|
|
cd boblightd-latest
|
|
|
|
SVN_REV=$(LANG=C svn info 2>/dev/null | grep Revision: | sed -e 's/.*\: //')
|
|
|
|
echo $SVN_REV
|
|
|
|
cd ..
|
2013-03-13 22:12:52 +02:00
|
|
|
|
|
|
|
echo "copying sources..."
|
2024-07-06 11:24:18 +02:00
|
|
|
rm -rf boblightd-$SVN_REV
|
|
|
|
cp -R boblightd-latest boblightd-$SVN_REV
|
2013-03-13 22:12:52 +02:00
|
|
|
|
|
|
|
#echo "cleaning sources..."
|
2024-07-06 11:24:18 +02:00
|
|
|
find boblightd-$SVN_REV -name ".svn" -exec rm -rf {} \; 2>/dev/null
|
2013-03-13 22:12:52 +02:00
|
|
|
|
|
|
|
echo "packing sources..."
|
2024-07-06 11:24:18 +02:00
|
|
|
tar cvJf boblightd-$SVN_REV.tar.xz boblightd-$SVN_REV
|
2013-03-13 22:12:52 +02:00
|
|
|
|
|
|
|
echo "remove temporary sourcedir..."
|
2024-07-06 11:24:18 +02:00
|
|
|
rm -rf boblightd-$SVN_REV
|