2013-10-14 21:03:58 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ "$#" -ne 2 ] || ! [ -d "$1" ] || ! [ -d "$2" ]; then
|
2016-05-26 23:44:27 +02:00
|
|
|
echo "Usage: $0 <BUILD-DIR> <REPO-DIR>" >&2
|
|
|
|
exit 1
|
2013-10-14 21:03:58 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
builddir="$1"
|
|
|
|
repodir="$2"
|
|
|
|
echo build directory = $builddir
|
|
|
|
echo repository root dirrectory = $repodir
|
|
|
|
|
2013-12-13 16:02:15 +01:00
|
|
|
outfile="$repodir/deploy/hyperion.tar.gz"
|
|
|
|
echo create $outfile
|
|
|
|
|
|
|
|
tar --create --verbose --gzip --absolute-names --show-transformed-names \
|
|
|
|
--file "$outfile" \
|
|
|
|
--transform "s:$builddir/bin/:hyperion/bin/:" \
|
2014-01-04 14:12:33 +01:00
|
|
|
--transform "s:$repodir/bin/hyperion.init.sh:hyperion/init.d/hyperion.init.sh:" \
|
2013-12-13 16:02:15 +01:00
|
|
|
--transform "s://:/:g" \
|
|
|
|
"$builddir/bin/hyperiond" \
|
|
|
|
"$builddir/bin/hyperion-remote" \
|
2014-01-26 16:12:07 +01:00
|
|
|
"$builddir/bin/hyperion-v4l2" \
|
2013-12-13 16:02:15 +01:00
|
|
|
"$builddir/bin/gpio2spi" \
|
|
|
|
"$builddir/bin/dispmanx2png" \
|
2014-01-04 14:12:33 +01:00
|
|
|
"$repodir/bin/hyperion.init.sh" \
|