update 701 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. echo "Getting latest irrlicht 1.8 version number:"
  3. latest_version=$( svn info https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/branches/releases/1.8 \
  4. | awk '/Last Changed Rev:/ {print $4;}')
  5. echo "Revision $latest_version"
  6. current_version=$( cat current_version)
  7. echo "Current irrlicht version: $current_version"
  8. if [ $current_version == $latest_version ]; then
  9. echo "No changes, exiting."
  10. exit
  11. fi
  12. echo "Applying patch from $current_version to $latest_version:"
  13. svn diff -r $current_version:$latest_version https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/branches/releases/1.8 \
  14. | patch -p0
  15. echo $latest_version>current_version
  16. echo "Done"