diff options
author | sanine <sanine.not@pm.me> | 2022-03-04 10:47:15 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-03-04 10:47:15 -0600 |
commit | 058f98a63658dc1a2579826ba167fd61bed1e21f (patch) | |
tree | bcba07a1615a14d943f3af3f815a42f3be86b2f3 /src/mesh/assimp-master/packaging/windows-mkzip/mkrev.bat | |
parent | 2f8028ac9e0812cb6f3cbb08f0f419e4e717bd22 (diff) |
add assimp submodule
Diffstat (limited to 'src/mesh/assimp-master/packaging/windows-mkzip/mkrev.bat')
-rw-r--r-- | src/mesh/assimp-master/packaging/windows-mkzip/mkrev.bat | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mesh/assimp-master/packaging/windows-mkzip/mkrev.bat b/src/mesh/assimp-master/packaging/windows-mkzip/mkrev.bat new file mode 100644 index 0000000..9d8eec1 --- /dev/null +++ b/src/mesh/assimp-master/packaging/windows-mkzip/mkrev.bat @@ -0,0 +1,27 @@ +@echo off
+
+rem -----------------------------------------------------
+rem Tiny batch script to build the input file revision.h
+rem revision.h contains the revision number of the wc.
+rem It is included by assimp.rc.
+rem -----------------------------------------------------
+
+rem This is not very elegant, but it works.
+rem ./bin shouldn't have any local modifications
+
+svnversion > tmpfile.txt
+set /p addtext= < tmpfile.txt
+del /q tmpfile.txt
+
+echo #define SVNRevision > tmpfile.txt
+
+if exist ..\..\revision.h del /q ..\..\revision.h
+for /f "delims=" %%l in (tmpfile.txt) Do (
+ for /f "delims=M:" %%r in ("%addtext%") Do (
+ echo %%l %%r >> ..\..\revision.h
+ )
+)
+del /q tmpfile.txt
+
+
+
|