copy_binaries_to_deploy.sh 739 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. if [ "$#" -ne 2 ] || ! [ -d "$1" ] || ! [ -d "$2" ]; then
  3. echo "Usage: $0 <BUILD-DIR> <REPO-DIR>" >&2
  4. exit 1
  5. fi
  6. builddir="$1"
  7. repodir="$2"
  8. echo build directory = $builddir
  9. echo repository root dirrectory = $repodir
  10. outfile="$repodir/deploy/hyperion.tar.gz"
  11. echo create $outfile
  12. tar --create --verbose --gzip --absolute-names --show-transformed-names \
  13. --file "$outfile" \
  14. --transform "s:$builddir/bin/:hyperion/bin/:" \
  15. --transform "s:$repodir/bin/hyperion.init.sh:hyperion/init.d/hyperion.init.sh:" \
  16. --transform "s://:/:g" \
  17. "$builddir/bin/hyperiond" \
  18. "$builddir/bin/hyperion-remote" \
  19. "$builddir/bin/hyperion-v4l2" \
  20. "$builddir/bin/gpio2spi" \
  21. "$builddir/bin/dispmanx2png" \
  22. "$repodir/bin/hyperion.init.sh" \