Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leethomason/tinyxml2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Thomason <leethomason@gmail.com>2014-03-16 02:01:18 +0400
committerLee Thomason <leethomason@gmail.com>2014-03-16 02:01:18 +0400
commite7eb7d33271aa913fde9855aa37a4e3aa127797b (patch)
treef0d369698647d15cedf51d3a08a50101500ce7fb /setversion.py
parent5938e6f8a4ed2ac4105d558fa9a609095503d896 (diff)
parent85afe9c5c73a598ed79cda6fd6dc71a27c78fc8f (diff)
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'setversion.py')
-rwxr-xr-xsetversion.py29
1 files changed, 14 insertions, 15 deletions
diff --git a/setversion.py b/setversion.py
index 11b2e75..ea5590e 100755
--- a/setversion.py
+++ b/setversion.py
@@ -26,7 +26,6 @@ def fileProcess( name, lineFunction ):
filestream.write( output );
filestream.close()
-
def echoInput( line ):
return line
@@ -40,8 +39,8 @@ minor = args[1]
build = args[2]
versionStr = major + "." + minor + "." + build
-print "Setting dox,tinyxml2.h"
-print "Version: " + `major` + "." + `minor` + "." + `build`
+print ("Setting dox,tinyxml2.h")
+print ("Version: " + major + "." + minor + "." + build)
#### Write the tinyxml.h ####
@@ -52,16 +51,16 @@ def engineRule( line ):
matchBuild = "static const int TIXML2_PATCH_VERSION"
if line[0:len(matchMajor)] == matchMajor:
- print "1)tinyxml2.h Major found"
- return matchMajor + " = " + `major` + ";\n"
+ print( "1)tinyxml2.h Major found" )
+ return matchMajor + " = " + major + ";\n"
elif line[0:len(matchMinor)] == matchMinor:
- print "2)tinyxml2.h Minor found"
- return matchMinor + " = " + `minor` + ";\n"
+ print( "2)tinyxml2.h Minor found" )
+ return matchMinor + " = " + minor + ";\n"
elif line[0:len(matchBuild)] == matchBuild:
- print "3)tinyxml2.h Build found"
- return matchBuild + " = " + `build` + ";\n"
+ print( "3)tinyxml2.h Build found" )
+ return matchBuild + " = " + build + ";\n"
else:
return line;
@@ -76,8 +75,8 @@ def doxRule( line ):
match = "PROJECT_NUMBER"
if line[0:len( match )] == match:
- print "dox project found"
- return "PROJECT_NUMBER = " + `major` + "." + `minor` + "." + `build` + "\n"
+ print( "dox project found" )
+ return "PROJECT_NUMBER = " + major + "." + minor + "." + build + "\n"
else:
return line;
@@ -92,8 +91,8 @@ def cmakeRule1( line ):
matchVersion = "set(GENERIC_LIB_VERSION"
if line[0:len(matchVersion)] == matchVersion:
- print "1)tinyxml2.h Major found"
- return matchVersion + " \"" + `major` + "." + `minor` + "." + `build` + "\")" + "\n"
+ print( "1)tinyxml2.h Major found" )
+ return matchVersion + " \"" + major + "." + minor + "." + build + "\")" + "\n"
else:
return line;
@@ -105,8 +104,8 @@ def cmakeRule2( line ):
matchSoversion = "set(GENERIC_LIB_SOVERSION"
if line[0:len(matchSoversion)] == matchSoversion:
- print "1)tinyxml2.h Major found"
- return matchSoversion + " \"" + `major` + "\")" + "\n"
+ print( "1)tinyxml2.h Major found" )
+ return matchSoversion + " \"" + major + "\")" + "\n"
else:
return line;