Merge branch 'master' of https://github.com/pzychotic/tinyxml2 into pzychotic-master
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 973a063..fff99d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,7 @@
################################
# set lib version here
-set(GENERIC_LIB_VERSION "2.0.0")
+set(GENERIC_LIB_VERSION "2.0.1")
set(GENERIC_LIB_SOVERSION "2")
diff --git a/dox b/dox
index b9eb25e..f7f46fe 100755
--- a/dox
+++ b/dox
@@ -32,7 +32,7 @@
# This could be handy for archiving the generated documentation or
# if some version control system is used.
-PROJECT_NUMBER = 2.0.0
+PROJECT_NUMBER = 2.0.1
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer
diff --git a/setversion.py b/setversion.py
index ad8083a..a73d94f 100755
--- a/setversion.py
+++ b/setversion.py
@@ -3,6 +3,7 @@
import re
import sys
+import optparse
def fileProcess( name, lineFunction ):
filestream = open( name, 'r' )
@@ -28,9 +29,15 @@
def echoInput( line ):
return line
-major = input( "Major: " )
-minor = input( "Minor: " )
-build = input( "Build: " )
+parser = optparse.OptionParser( "usage: %prog major minor build" )
+(options, args) = parser.parse_args()
+if len(args) != 3:
+ parser.error( "incorrect number of arguments" );
+
+major = args[0]
+minor = args[1]
+build = args[2]
+versionStr = major + "." + minor + "." + build
print ("Setting dox,tinyxml2.h")
print ("Version: " + major + "." + minor + "." + build)
@@ -104,3 +111,8 @@
return line;
fileProcess( "CMakeLists.txt", cmakeRule2 )
+
+print( "Release note:" )
+print( '1. Build. g++ -Wall -DDEBUG tinyxml2.cpp xmltest.cpp -o gccxmltest.exe' )
+print( '2. Commit. git commit -am"setting the version to ' + versionStr + '"' )
+print( '3. Tag. git tag ' + versionStr )
diff --git a/tinyxml2.h b/tinyxml2.h
index 3df3e8d..2ecd6d8 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -121,7 +121,7 @@
*/
static const int TIXML2_MAJOR_VERSION = 2;
static const int TIXML2_MINOR_VERSION = 0;
-static const int TIXML2_PATCH_VERSION = 0;
+static const int TIXML2_PATCH_VERSION = 1;
namespace tinyxml2
{