Fix scripts to add python3 support
* fixed libraries include
* fixed incorrect usage of python2 string
* fixed python2 to python3 script issues (2to3) like print ""
* fixed data types
* fixed python3 usage of str instead of string (join, split etc.)
* added support to determine the absolute path of the executable
binary of the current Python interpreter
* thx @Bagira80 for his support
Fixes issue: #67
Signed-off-by: Thomas Höhlig <thoehlig@benocs.com>
This commit is contained in:
1 parent
03869de68e
commit
4b8160057a
4 files changed
+67
-63
No files matched your search
@@ -57,10 +57,10 @@ def process_all( root, boost_root, dst_dir, mode ):
|
||||
|
||||
def main( all_modes, src_dir, dst_dir ):
|
||||
if len( sys.argv ) < 2:
|
||||
print "\nUsage:\n\t %s <mode> <boost_root> [<source_file>]" % os.path.basename( sys.argv[0] )
|
||||
print "\nPurpose:\n\t updates preprocessed version(s) of the header(s) in \"%s\" directory" % dst_dir
|
||||
print "\nExample:\n\t the following command will re-generate and update all 'apply.hpp' headers:"
|
||||
print "\n\t\t %s all f:\\cvs\\boost apply.cpp" % os.path.basename( sys.argv[0] )
|
||||
print("\nUsage:\n\t %s <mode> <boost_root> [<source_file>]" % os.path.basename( sys.argv[0] ))
|
||||
print("\nPurpose:\n\t updates preprocessed version(s) of the header(s) in \"%s\" directory" % dst_dir)
|
||||
print("\nExample:\n\t the following command will re-generate and update all 'apply.hpp' headers:")
|
||||
print("\n\t\t %s all f:\\cvs\\boost apply.cpp" % os.path.basename( sys.argv[0] ))
|
||||
sys.exit( -1 )
|
||||
|
||||
if sys.argv[1] == "all":
|
||||
|
||||
Reference in new issue
Block a user