mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
ff2a1038a0
This reverts commit 9280078cf0
[formerly 0261bc7735663dba45681a5c0e4026b4c1fddeba].
Former-commit-id: e2850cd34a48bcccaa887a33ff7bf06e0a25c904
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
#!/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
|
|
|
|
outfile="$repodir/deploy/hyperion_$buildid.tar.gz"
|
|
echo create $outfile
|
|
|
|
tar --create --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/:" \
|
|
--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:" \
|
|
--transform "s://:/:g" \
|
|
"$builddir/bin/hyperiond" \
|
|
"$builddir/bin/hyperion-remote" \
|
|
"$builddir/bin/hyperion-v4l2" \
|
|
"$builddir/bin/hyperion-x11" \
|
|
"$builddir/bin/hyperion-dispmanx" \
|
|
"$repodir/effects/"* \
|
|
"$repodir/bin/service/hyperion.init.sh" \
|
|
"$repodir/bin/service/hyperion.systemd.sh" \
|
|
"$repodir/bin/service/hyperion.initctl.sh" \
|
|
"$repodir/config/hyperion.config.json"
|
|
|