Updated the install scripts to deal with the increased number of (effect) files

Former-commit-id: a7d7484fe9d8a23b217f22a35b092b53147fb393
This commit is contained in:
Johan 2013-12-13 16:02:15 +01:00
parent b124ba25d8
commit 279018f74c
2 changed files with 24 additions and 15 deletions

View File

@ -10,7 +10,18 @@ repodir="$2"
echo build directory = $builddir echo build directory = $builddir
echo repository root dirrectory = $repodir echo repository root dirrectory = $repodir
echo Copying binaries outfile="$repodir/deploy/hyperion.tar.gz"
cp -v "$builddir"/bin/hyperiond "$repodir"/deploy echo create $outfile
cp -v "$builddir"/bin/hyperion-remote "$repodir"/deploy
cp -v "$builddir"/bin/gpio2spi "$repodir"/deploy 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"

View File

@ -16,22 +16,20 @@ fi
# Stop hyperion daemon if it is running # Stop hyperion daemon if it is running
/sbin/initctl stop hyperion /sbin/initctl stop hyperion
# Get the Hyperion executable # Get and extract the Hyperion binaries and effects to /opt
wget -N https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperiond -P /usr/bin/ wget https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperion.tar.gz -O - | tar -C /opt -xz
chmod +x /usr/bin/hyperiond
# Get the Hyperion command line utility # create links to the binaries
wget -N https://raw.github.com/tvdzwan/hyperion/master/deploy/hyperion-remote -P /usr/bin/ ln -fs /opt/hyperion/bin/hyperiond /usr/bin/hyperiond
chmod +x /usr/bin/hyperion-remote ln -fs /opt/hyperion/bin/hyperion-remote /usr/bin/hyperion-remote
# Copy the gpio changer (gpio->spi) to the /usr/bin # create link to the gpio changer (gpio->spi)
if [ $IS_XBIAN -eq 0 ]; then if [ $IS_XBIAN -eq 0 ]; then
wget -N https://raw.github.com/tvdzwan/hyperion/master/deploy/gpio2spi -P /usr/bin/ ln -fs /opt/hyperion/bin/gpio2spi /usr/bin/gpio2spi
chmod +x /usr/bin/gpio2spi
fi fi
# Copy the hyperion configuration file to /etc # Copy a link to the hyperion configuration file to /etc
wget -N https://raw.github.com/tvdzwan/hyperion/master/config/hyperion.config.json -P /etc/ ln -s /opt/hyperion/config/hyperion.config.json /etc/hyperion.config.json
# Copy the service control configuration to /etc/int # Copy the service control configuration to /etc/int
if [ $IS_XBIAN -eq 0 ]; then if [ $IS_XBIAN -eq 0 ]; then