summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-04 11:25:28 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-04 11:25:28 +0000
commit479f5a453ef9e02a9913a994c0e74ed101edc1e6 (patch)
tree6d199cce494dda930c01c31973df6e6f4953ba3d /tools
parent3f9f1e465bd86b8f2143c84f9b95b58d14f408d9 (diff)
downloadhercules-479f5a453ef9e02a9913a994c0e74ed101edc1e6.tar.gz
hercules-479f5a453ef9e02a9913a994c0e74ed101edc1e6.tar.bz2
hercules-479f5a453ef9e02a9913a994c0e74ed101edc1e6.tar.xz
hercules-479f5a453ef9e02a9913a994c0e74ed101edc1e6.zip
Corrected project files / makefiles that were missing newly added .c file entries.
Corrected a leftover _RJ setting in the vs6/vs7/vs8 txt login server project files. Reformatted the converters makefile. Added a crude vs9->vs8 project file converter to /tools. Synchronized vs8 project files using the converter tool. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13043 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'tools')
-rw-r--r--tools/vs9-to-vs8.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/tools/vs9-to-vs8.php b/tools/vs9-to-vs8.php
new file mode 100644
index 000000000..aa88379ff
--- /dev/null
+++ b/tools/vs9-to-vs8.php
@@ -0,0 +1,43 @@
+<?php
+ // Visual Studio 9 to Visual Studio 8 project file converter
+ // author : theultramage
+ // version: 4. august 2008
+?>
+<?php
+ echo "VS9 to VS8 project file converter"."\n";
+ echo "---------------------------------"."\n";
+ if( @$_SERVER["argc"] < 2 )
+ {
+ echo "Usage: {$_SERVER["argv"][0]} file.vcproj"."\n";
+ exit();
+ }
+
+ $input = @$_SERVER["argv"][1];
+ $data = file($input);
+ if( $data === FALSE )
+ die("invalid input file '".$input."'");
+
+ echo "Converting {$input}...";
+
+ foreach( $data as $line )
+ {
+ if( strstr($line,'Version="9,00"') !== FALSE )
+ echo "\t".'Version="8,00"'."\n";
+ else
+ if( strstr($line,'Version="9.00"') !== FALSE )
+ echo "\t".'Version="8.00"'."\n";
+ else
+ if( strstr($line,'TargetFrameworkVersion') !== FALSE )
+ ;
+ else
+ if( strstr($line,'RandomizedBaseAddress') !== FALSE )
+ ;
+ else
+ if( strstr($line,'DataExecutionPrevention') !== FALSE )
+ ;
+ else // default
+ echo $line;
+ }
+
+ echo "done."."\n";
+?>