hyperion.ng/bin/copy_binaries_to_deploy.sh
Johan 279018f74c Updated the install scripts to deal with the increased number of (effect) files
Former-commit-id: a7d7484fe9d8a23b217f22a35b092b53147fb393
2013-12-13 16:02:15 +01:00

28 lines
764 B
Bash
Executable File

#!/bin/sh
if [ "$#" -ne 2 ] || ! [ -d "$1" ] || ! [ -d "$2" ]; then
echo "Usage: $0 <BUILD-DIR> <REPO-DIR>" >&2
exit 1
fi
builddir="$1"
repodir="$2"
echo build directory = $builddir
echo repository root dirrectory = $repodir
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/:" \
--transform "s:$repodir/effects/:hyperion/effects/:" \
--transform "s:$repodir/config/:hyperion/config/:" \
--transform "s://:/:g" \
"$builddir/bin/hyperiond" \
"$builddir/bin/hyperion-remote" \
"$builddir/bin/gpio2spi" \
"$builddir/bin/dispmanx2png" \
"$repodir/effects/"* \
"$repodir/config/hyperion.config.json"