build_engine.sh 1.2 KB

123456789101112131415161718192021
  1. #!/bin/sh
  2. # This Shell Script will build and use the latest jMonkeyEngine git version, so there might be some undiscovered engine bugs, watch out!
  3. # Also if you want to revert to releases and bintray builds, you need to uninstall them from your local maven repo...
  4. echo "Downloading the Engine, this may take some time"
  5. if [ "x$TRAVIS" != "x" ] && [ "x$TRAVIS_TAG" != "x" ]; then
  6. # Extract the engine version from the sdk branch tag.
  7. git clone -b $(echo "$TRAVIS_TAG" | sed -n 's/\(v.\+\)-sdk.\+/\1/p') --single-branch --depth 10 https://github.com/jMonkeyEngine/jMonkeyEngine/ engine # single-branch requires git > 1.7.10, if you see an error, just leave it out.
  8. else
  9. git clone -b v3.2 --single-branch --depth 10 https://github.com/jMonkeyEngine/jMonkeyEngine/ engine # single-branch requires git > 1.7.10, if you see an error, just leave it out.
  10. fi
  11. cd engine
  12. # git checkout tags/v3.1.0-beta2 # To use this, leave out depth and change -b to a branch.
  13. #echo "Patching the Engine...."
  14. #patch -s -N -p 1 < ../patches/FixHWSkinningSerialization.diff
  15. echo "Building the Engine and installing them to your local maven repo...."
  16. ./gradlew -PbuildJavaDoc=true install # Depends on jarJavadoc, jarSourcecode, assemble, dist etc.
  17. cd ../