install.sh 557 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. #
  3. # ./install.sh [master | next]
  4. #
  5. # Download GamePlay resources from HTTP server and extract from ZIP
  6. #
  7. # Helps prevent repo bloat due to large binary files since they can
  8. # be hosted separately.
  9. #
  10. prefix=http://www.gameplay3d.org
  11. branchname=$1
  12. if [[ "$branchname" == "" ]]; then
  13. branchname="next"
  14. fi
  15. filename=gameplay-deps-$branchname
  16. echo Downloading $filename.zip from $prefix...
  17. curl -# -O $prefix/$filename.zip
  18. echo Extracting $filename.zip... please standby...
  19. unzip -q $filename.zip
  20. echo Cleaning up...
  21. rm $filename.zip
  22. echo Done.