2015-09-09 22:21:51 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ "$#" -ne 2 ] || ! [ -d "$1" ]; then
|
|
|
|
echo "Usage: $0 <REPO-DIR> <BUILD-ID>" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
repodir="$1"
|
|
|
|
buildid="$2"
|
|
|
|
builddir=$repodir/build-$buildid
|
|
|
|
echo build directory = $builddir
|
|
|
|
echo repository root dirrectory = $repodir
|
|
|
|
if ! [ -d "$builddir" ]; then
|
|
|
|
echo "Could not find build director"
|
|
|
|
exit 1
|
|
|
|
fi
|
2016-03-13 17:56:00 +01:00
|
|
|
|
2015-09-09 22:21:51 +02:00
|
|
|
outfile="$repodir/deploy/hyperion_$buildid.tar.gz"
|
|
|
|
echo create $outfile
|
|
|
|
|
|
|
|
tar --create --verbose --gzip --absolute-names --show-transformed-names --ignore-failed-read\
|
|
|
|
--file "$outfile" \
|
|
|
|
--transform "s:$builddir/bin/:hyperion/bin/:" \
|
|
|
|
--transform "s:$repodir/effects/:hyperion/effects/:" \
|
|
|
|
--transform "s:$repodir/config/:hyperion/config/:" \
|
2016-03-13 15:40:49 +01:00
|
|
|
--transform "s:$repodir/bin/service/hyperion.init.sh:hyperion/init.d/hyperion.init.sh:" \
|
|
|
|
--transform "s:$repodir/bin/service/hyperion.systemd.sh:hyperion/init.d/hyperion.systemd.sh:" \
|
|
|
|
--transform "s:$repodir/bin/service/hyperion.initctl.sh:hyperion/init.d/hyperion.initctl.sh:" \
|
2015-09-09 22:21:51 +02:00
|
|
|
--transform "s://:/:g" \
|
|
|
|
"$builddir/bin/hyperiond" \
|
|
|
|
"$builddir/bin/hyperion-remote" \
|
|
|
|
"$builddir/bin/hyperion-v4l2" \
|
2016-03-13 17:56:00 +01:00
|
|
|
"$builddir/bin/hyperion-x11" \
|
2016-03-13 15:40:49 +01:00
|
|
|
"$builddir/bin/hyperion-dispmanx" \
|
2015-09-09 22:21:51 +02:00
|
|
|
"$repodir/effects/"* \
|
2016-03-13 15:40:49 +01:00
|
|
|
"$repodir/bin/service/hyperion.init.sh" \
|
|
|
|
"$repodir/bin/service/hyperion.systemd.sh" \
|
|
|
|
"$repodir/bin/service/hyperion.initctl.sh" \
|
2015-09-09 22:21:51 +02:00
|
|
|
"$repodir/config/hyperion.config.json"
|
|
|
|
|