summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-15 11:53:49 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-15 11:53:49 +0000
commit75787153a7c5208b46c513828b4242f6d93d299a (patch)
treebd1fab7c7cd30ee607f3ccc2f26e2e1b7ca8c77c
parent0d67a194537e8e69426c8f55ced61b0a8701e90a (diff)
downloadhercules-75787153a7c5208b46c513828b4242f6d93d299a.tar.gz
hercules-75787153a7c5208b46c513828b4242f6d93d299a.tar.bz2
hercules-75787153a7c5208b46c513828b4242f6d93d299a.tar.xz
hercules-75787153a7c5208b46c513828b4242f6d93d299a.zip
Adjusted the vs9-to-vs8 converter so that status messages won't mix with its converted output.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13082 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--tools/vs9-to-vs8.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/vs9-to-vs8.php b/tools/vs9-to-vs8.php
index aa88379ff..f2f840592 100644
--- a/tools/vs9-to-vs8.php
+++ b/tools/vs9-to-vs8.php
@@ -1,14 +1,14 @@
<?php
// Visual Studio 9 to Visual Studio 8 project file converter
// author : theultramage
- // version: 4. august 2008
+ // version: 15. august 2008
?>
<?php
- echo "VS9 to VS8 project file converter"."\n";
- echo "---------------------------------"."\n";
+ fprintf(STDERR, "VS9 to VS8 project file converter"."\n");
+ fprintf(STDERR, "---------------------------------"."\n");
if( @$_SERVER["argc"] < 2 )
{
- echo "Usage: {$_SERVER["argv"][0]} file.vcproj"."\n";
+ fprintf(STDERR, "Usage: {$_SERVER["argv"][0]} file.vcproj"."\n");
exit();
}
@@ -17,15 +17,15 @@
if( $data === FALSE )
die("invalid input file '".$input."'");
- echo "Converting {$input}...";
+ fprintf(STDERR, "Converting {$input}...");
foreach( $data as $line )
{
if( strstr($line,'Version="9,00"') !== FALSE )
- echo "\t".'Version="8,00"'."\n";
+ fprintf(STDOUT, "\t".'Version="8,00"'."\n");
else
if( strstr($line,'Version="9.00"') !== FALSE )
- echo "\t".'Version="8.00"'."\n";
+ fprintf(STDOUT, "\t".'Version="8.00"'."\n");
else
if( strstr($line,'TargetFrameworkVersion') !== FALSE )
;
@@ -36,8 +36,8 @@
if( strstr($line,'DataExecutionPrevention') !== FALSE )
;
else // default
- echo $line;
+ fprintf(STDOUT, $line);
}
- echo "done."."\n";
+ fprintf(STDERR, "done."."\n");
?>