From 8931645a48a7d664f629a1d32db5995e3c879fd8 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 1 Nov 2012 03:41:03 +0000 Subject: [PATCH] Added README and a small script to update this branch. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11847 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- lib/irrlicht/README.stk | 5 +++++ lib/irrlicht/current_version | 1 + lib/irrlicht/update | 21 +++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 lib/irrlicht/README.stk create mode 100644 lib/irrlicht/current_version create mode 100755 lib/irrlicht/update diff --git a/lib/irrlicht/README.stk b/lib/irrlicht/README.stk new file mode 100644 index 000000000..83a4f096d --- /dev/null +++ b/lib/irrlicht/README.stk @@ -0,0 +1,5 @@ +This is a copy of the irrlicht 1.8, r4350. +We need to have our own version to change some #defines for stk. +The script 'update' will update this branch automatically from +the correspdonding irrlicht releases/1.8 branch (the latest updated +version is in the file current_version). diff --git a/lib/irrlicht/current_version b/lib/irrlicht/current_version new file mode 100644 index 000000000..28bb8fc33 --- /dev/null +++ b/lib/irrlicht/current_version @@ -0,0 +1 @@ +4350 diff --git a/lib/irrlicht/update b/lib/irrlicht/update new file mode 100755 index 000000000..0128e6d76 --- /dev/null +++ b/lib/irrlicht/update @@ -0,0 +1,21 @@ +#!/bin/bash + +echo "Getting latest irrlicht 1.8 version number:" +latest_version=$( svn info https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/branches/releases/1.8 \ + | awk '/Last Changed Rev:/ {print $4;}') +echo "Revision $latest_version" + +current_version=$( cat current_version) +echo "Current irrlicht version: $current_version" +if [ $current_version == $latest_version ]; then + echo "No changes, exiting." + exit +fi +echo "Applying patch from $current_version to $latest_version:" + +svn diff -r $current_version:$latest_version https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/branches/releases/1.8 \ + | patch -p0 + +echo $latest_version>current_version +echo "Done" +