From dbc56bf84bfa3fe27146b56f468a736941892dcc Mon Sep 17 00:00:00 2001 From: shiqian Date: Fri, 25 Jul 2008 00:54:56 +0000 Subject: Adds an Xcode project for building gtest. By Preston Jackson. --- xcode/Scripts/versiongenerate.py | 71 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 xcode/Scripts/versiongenerate.py (limited to 'xcode/Scripts') diff --git a/xcode/Scripts/versiongenerate.py b/xcode/Scripts/versiongenerate.py new file mode 100644 index 00000000..3b19a96b --- /dev/null +++ b/xcode/Scripts/versiongenerate.py @@ -0,0 +1,71 @@ +#/usr/bin/python + +"""A script to prepare version informtion for use the gtest Info.plist file. + + This script extracts the version information from the configure.ac file and + uses it to generate a header file containing the same information. The + #defines in this header file will be included in during the generation of + the Info.plist of the framework, giving the correct value to the version + shown in the Finder. + + This script makes the following assumptions (these are faults of the script, + not problems with the Autoconf): + 1. The AC_INIT macro will be contained within the first 1024 characters + of configure.ac + 2. The version string will be 3 integers separated by periods and will be + surrounded by squre brackets, "[" and "]" (e.g. [1.0.1]). The first + segment represents the major version, the second represents the minor + version and the third represents the fix version. + 3. No ")" character exists between the opening "(" and closing ")" of + AC_INIT, including in comments and character strings. +""" + +import sys +import re + +# Read the command line argument (the output directory for Version.h) +if (len(sys.argv) < 3): + print "Usage: /usr/bin/python versiongenerate.py input_dir output_dir" + sys.exit(1) +else: + input_dir = sys.argv[1] + output_dir = sys.argv[2] + +# Read the first 1024 characters of the configure.ac file +config_file = open("%s/configure.ac" % input_dir, 'r') +buffer_size = 1024 +opening_string = config_file.read(buffer_size) +config_file.close() + +# Extract the version string from the AC_INIT macro +# The following init_expression means: +# Extract three integers separated by periods and surrounded by squre +# brackets(e.g. "[1.0.1]") between "AC_INIT(" and ")". Do not be greedy +# (*? is the non-greedy flag) since that would pull in everything between +# the first "(" and the last ")" in the file. +version_expression = re.compile(r"AC_INIT\(.*?\[(\d+)\.(\d+)\.(\d+)\].*?\)", + re.DOTALL) +version_values = version_expression.search(opening_string) +major_version = version_values.group(1) +minor_version = version_values.group(2) +fix_version = version_values.group(3) + +# Write the version information to a header file to be included in the +# Info.plist file. +file_data = """// +// DO NOT MODIFY THIS FILE (but you can delete it) +// +// This file is autogenerated by the versiongenerate.py script. This script +// is executed in a "Run Script" build phase when creating gtest.framework. This +// header file is not used during compilation of C-source. Rather, it simply +// defines some version strings for substitution in the Info.plist. Because of +// this, we are not not restricted to C-syntax nor are we using include guards. +// + +#define GTEST_VERSIONINFO_SHORT %s.%s +#define GTEST_VERSIONINFO_LONG %s.%s.%s + +""" % (major_version, minor_version, major_version, minor_version, fix_version) +version_file = open("%s/Version.h" % output_dir, 'w') +version_file.write(file_data) +version_file.close() -- cgit v1.2.3 From 980926a9ed432f490191b109f6aac257de737e51 Mon Sep 17 00:00:00 2001 From: "preston.jackson" Date: Wed, 8 Oct 2008 20:24:37 +0000 Subject: Adding tests to Xcode project --- xcode/Scripts/runtests.sh | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 xcode/Scripts/runtests.sh (limited to 'xcode/Scripts') diff --git a/xcode/Scripts/runtests.sh b/xcode/Scripts/runtests.sh new file mode 100644 index 00000000..b9069e0f --- /dev/null +++ b/xcode/Scripts/runtests.sh @@ -0,0 +1,56 @@ +#!/bin/bash + +# Executes the samples and tests for the Google Test Framework + +# Help the dynamic linker find the path to the framework +export DYLD_FRAMEWORK_PATH=$BUILT_PRODUCTS_DIR + +# Create an array of test executables +test_executables=("$BUILT_PRODUCTS_DIR/sample1_unittest" + "$BUILT_PRODUCTS_DIR/sample2_unittest" + "$BUILT_PRODUCTS_DIR/sample3_unittest" + "$BUILT_PRODUCTS_DIR/sample4_unittest" + "$BUILT_PRODUCTS_DIR/sample5_unittest" + "$BUILT_PRODUCTS_DIR/sample6_unittest" + + "$BUILT_PRODUCTS_DIR/gtest_unittest" + "$BUILT_PRODUCTS_DIR/gtest-death-test_test" + "$BUILT_PRODUCTS_DIR/gtest-filepath_test" + "$BUILT_PRODUCTS_DIR/gtest-message_test" + "$BUILT_PRODUCTS_DIR/gtest-options_test" + "$BUILT_PRODUCTS_DIR/gtest_pred_impl_unittest" + "$BUILT_PRODUCTS_DIR/gtest_environment_test" + "$BUILT_PRODUCTS_DIR/gtest_no_test_unittest" + "$BUILT_PRODUCTS_DIR/gtest_main_unittest" + "$BUILT_PRODUCTS_DIR/gtest_prod_test" + "$BUILT_PRODUCTS_DIR/gtest_repeat_test" + "$BUILT_PRODUCTS_DIR/gtest_stress_test" + "$BUILT_PRODUCTS_DIR/gtest-typed-test_test" + + "$BUILT_PRODUCTS_DIR/gtest_output_test.py" + "$BUILT_PRODUCTS_DIR/gtest_color_test.py" + "$BUILT_PRODUCTS_DIR/gtest_env_var_test.py" + "$BUILT_PRODUCTS_DIR/gtest_filter_unittest.py" + "$BUILT_PRODUCTS_DIR/gtest_break_on_failure_unittest.py" + "$BUILT_PRODUCTS_DIR/gtest_list_tests_unittest.py" + "$BUILT_PRODUCTS_DIR/gtest_xml_output_unittest.py" + "$BUILT_PRODUCTS_DIR/gtest_xml_outfiles_test.py" + "$BUILT_PRODUCTS_DIR/gtest_uninitialized_test.py" +) + +# Now execute each one in turn keeping track of how many succeeded and failed. +succeeded=0 +failed=0 +for test in ${test_executables[*]}; do + "$test" + result=$? + if [ $result -eq 0 ]; then + succeeded=$(( $succeeded + 1 )) + else + failed=$(( failed + 1 )) + fi +done + +# Report the successes and failures to the console +echo "Tests complete with $succeeded successes and $failed failures." +exit $failed -- cgit v1.2.3 From e0865dd9199e8fffd5c2f95a68de6c1851f77c15 Mon Sep 17 00:00:00 2001 From: shiqian Date: Sat, 11 Oct 2008 07:20:02 +0000 Subject: Many changes: - appends "_" to internal macro names (by Markus Heule). - makes Google Test work with newer versions of tools on Symbian and Windows CE (by Mika Raento). - adds the (ASSERT|EXPECT)_NO_FATAL_FAILURE macros (by Markus Heule). - changes EXPECT_(NON|)FATAL_FAILURE to catch failures in the current thread only (by Markus Heule). - adds the EXPECT_(NON|)FATAL_FAILURE_ON_ALL_THREADS macros (by Markus Heule). - adds GTEST_HAS_PTHREAD and GTEST_IS_THREADSAFE to indicate the availability of and Google Test's thread-safety (by Zhanyong Wan). - adds scons/SConscript for building with scons (by Joi Sigurdsson). - adds src/gtest-all.cc for building Google Test from a single file (by Markus Heule). - updates the xcode project to include new tests (by Preston Jackson). --- xcode/Scripts/runtests.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xcode/Scripts') diff --git a/xcode/Scripts/runtests.sh b/xcode/Scripts/runtests.sh index b9069e0f..b5c57957 100644 --- a/xcode/Scripts/runtests.sh +++ b/xcode/Scripts/runtests.sh @@ -24,7 +24,9 @@ test_executables=("$BUILT_PRODUCTS_DIR/sample1_unittest" "$BUILT_PRODUCTS_DIR/gtest_main_unittest" "$BUILT_PRODUCTS_DIR/gtest_prod_test" "$BUILT_PRODUCTS_DIR/gtest_repeat_test" + "$BUILT_PRODUCTS_DIR/gtest_sole_header_test" "$BUILT_PRODUCTS_DIR/gtest_stress_test" + "$BUILT_PRODUCTS_DIR/gtest_test_part_test" "$BUILT_PRODUCTS_DIR/gtest-typed-test_test" "$BUILT_PRODUCTS_DIR/gtest_output_test.py" @@ -41,6 +43,7 @@ test_executables=("$BUILT_PRODUCTS_DIR/sample1_unittest" # Now execute each one in turn keeping track of how many succeeded and failed. succeeded=0 failed=0 +failed_list=() for test in ${test_executables[*]}; do "$test" result=$? @@ -48,9 +51,14 @@ for test in ${test_executables[*]}; do succeeded=$(( $succeeded + 1 )) else failed=$(( failed + 1 )) + failed_list="$failed_list $test" fi done # Report the successes and failures to the console echo "Tests complete with $succeeded successes and $failed failures." +if [ $failed -ne 0 ]; then + echo "The following tests failed:" + echo $failed_list +fi exit $failed -- cgit v1.2.3 From 3d7042176307f0d7700a3640f3b3bcc8790b8fcd Mon Sep 17 00:00:00 2001 From: vladlosev Date: Thu, 20 Nov 2008 01:40:35 +0000 Subject: Value-parameterized tests and many bugfixes --- xcode/Scripts/runtests.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xcode/Scripts') diff --git a/xcode/Scripts/runtests.sh b/xcode/Scripts/runtests.sh index b5c57957..6ca8296b 100644 --- a/xcode/Scripts/runtests.sh +++ b/xcode/Scripts/runtests.sh @@ -12,6 +12,8 @@ test_executables=("$BUILT_PRODUCTS_DIR/sample1_unittest" "$BUILT_PRODUCTS_DIR/sample4_unittest" "$BUILT_PRODUCTS_DIR/sample5_unittest" "$BUILT_PRODUCTS_DIR/sample6_unittest" + "$BUILT_PRODUCTS_DIR/sample7_unittest" + "$BUILT_PRODUCTS_DIR/sample8_unittest" "$BUILT_PRODUCTS_DIR/gtest_unittest" "$BUILT_PRODUCTS_DIR/gtest-death-test_test" @@ -28,6 +30,9 @@ test_executables=("$BUILT_PRODUCTS_DIR/sample1_unittest" "$BUILT_PRODUCTS_DIR/gtest_stress_test" "$BUILT_PRODUCTS_DIR/gtest_test_part_test" "$BUILT_PRODUCTS_DIR/gtest-typed-test_test" + "$BUILT_PRODUCTS_DIR/gtest-param-test_test" + "$BUILT_PRODUCTS_DIR/gtest-linked_ptr_test" + "$BUILT_PRODUCTS_DIR/gtest-port_test" "$BUILT_PRODUCTS_DIR/gtest_output_test.py" "$BUILT_PRODUCTS_DIR/gtest_color_test.py" -- cgit v1.2.3 From 0c7871ca6a1f0ed124e89c5f4081703fabda0499 Mon Sep 17 00:00:00 2001 From: "preston.a.jackson" Date: Fri, 21 Nov 2008 22:16:36 +0000 Subject: Removing a warning when building from the command line. Reordering targets to be semi-alphabetical and to match the ordering in the Makefile. Cleaning up target names to remove the underscore (on the python-based ones), and adding 'run_' Xcode executables to run the python script from within Xcode. Whew --- xcode/Scripts/runtests.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'xcode/Scripts') diff --git a/xcode/Scripts/runtests.sh b/xcode/Scripts/runtests.sh index 6ca8296b..168da487 100644 --- a/xcode/Scripts/runtests.sh +++ b/xcode/Scripts/runtests.sh @@ -15,33 +15,33 @@ test_executables=("$BUILT_PRODUCTS_DIR/sample1_unittest" "$BUILT_PRODUCTS_DIR/sample7_unittest" "$BUILT_PRODUCTS_DIR/sample8_unittest" - "$BUILT_PRODUCTS_DIR/gtest_unittest" "$BUILT_PRODUCTS_DIR/gtest-death-test_test" + "$BUILT_PRODUCTS_DIR/gtest_environment_test" "$BUILT_PRODUCTS_DIR/gtest-filepath_test" + "$BUILT_PRODUCTS_DIR/gtest-linked_ptr_test" + "$BUILT_PRODUCTS_DIR/gtest_main_unittest" "$BUILT_PRODUCTS_DIR/gtest-message_test" + "$BUILT_PRODUCTS_DIR/gtest_no_test_unittest" "$BUILT_PRODUCTS_DIR/gtest-options_test" + "$BUILT_PRODUCTS_DIR/gtest-param-test_test" + "$BUILT_PRODUCTS_DIR/gtest-port_test" "$BUILT_PRODUCTS_DIR/gtest_pred_impl_unittest" - "$BUILT_PRODUCTS_DIR/gtest_environment_test" - "$BUILT_PRODUCTS_DIR/gtest_no_test_unittest" - "$BUILT_PRODUCTS_DIR/gtest_main_unittest" "$BUILT_PRODUCTS_DIR/gtest_prod_test" "$BUILT_PRODUCTS_DIR/gtest_repeat_test" "$BUILT_PRODUCTS_DIR/gtest_sole_header_test" "$BUILT_PRODUCTS_DIR/gtest_stress_test" "$BUILT_PRODUCTS_DIR/gtest_test_part_test" "$BUILT_PRODUCTS_DIR/gtest-typed-test_test" - "$BUILT_PRODUCTS_DIR/gtest-param-test_test" - "$BUILT_PRODUCTS_DIR/gtest-linked_ptr_test" - "$BUILT_PRODUCTS_DIR/gtest-port_test" + "$BUILT_PRODUCTS_DIR/gtest_unittest" - "$BUILT_PRODUCTS_DIR/gtest_output_test.py" + "$BUILT_PRODUCTS_DIR/gtest_break_on_failure_unittest.py" "$BUILT_PRODUCTS_DIR/gtest_color_test.py" "$BUILT_PRODUCTS_DIR/gtest_env_var_test.py" "$BUILT_PRODUCTS_DIR/gtest_filter_unittest.py" - "$BUILT_PRODUCTS_DIR/gtest_break_on_failure_unittest.py" "$BUILT_PRODUCTS_DIR/gtest_list_tests_unittest.py" - "$BUILT_PRODUCTS_DIR/gtest_xml_output_unittest.py" + "$BUILT_PRODUCTS_DIR/gtest_output_test.py" "$BUILT_PRODUCTS_DIR/gtest_xml_outfiles_test.py" + "$BUILT_PRODUCTS_DIR/gtest_xml_output_unittest.py" "$BUILT_PRODUCTS_DIR/gtest_uninitialized_test.py" ) -- cgit v1.2.3 From 6149876141b4a5d16d1481835bf5519618183980 Mon Sep 17 00:00:00 2001 From: "preston.a.jackson" Date: Fri, 21 Aug 2009 14:00:34 +0000 Subject: Cleaning up gtest.xcode. Removing old tests, using gtest-all.cc, adding a static libgtest.a and a static libgtest_main.a, fixing the sample code to work with changes. --- xcode/Scripts/runtests.sh | 49 ++++++++--------------------------------------- 1 file changed, 8 insertions(+), 41 deletions(-) (limited to 'xcode/Scripts') diff --git a/xcode/Scripts/runtests.sh b/xcode/Scripts/runtests.sh index 168da487..9d23a772 100644 --- a/xcode/Scripts/runtests.sh +++ b/xcode/Scripts/runtests.sh @@ -1,49 +1,16 @@ #!/bin/bash -# Executes the samples and tests for the Google Test Framework +# Executes the samples and tests for the Google Test Framework. -# Help the dynamic linker find the path to the framework +# Help the dynamic linker find the path to the libraries. export DYLD_FRAMEWORK_PATH=$BUILT_PRODUCTS_DIR +export DYLD_LIBRARY_PATH=$BUILT_PRODUCTS_DIR -# Create an array of test executables -test_executables=("$BUILT_PRODUCTS_DIR/sample1_unittest" - "$BUILT_PRODUCTS_DIR/sample2_unittest" - "$BUILT_PRODUCTS_DIR/sample3_unittest" - "$BUILT_PRODUCTS_DIR/sample4_unittest" - "$BUILT_PRODUCTS_DIR/sample5_unittest" - "$BUILT_PRODUCTS_DIR/sample6_unittest" - "$BUILT_PRODUCTS_DIR/sample7_unittest" - "$BUILT_PRODUCTS_DIR/sample8_unittest" - - "$BUILT_PRODUCTS_DIR/gtest-death-test_test" - "$BUILT_PRODUCTS_DIR/gtest_environment_test" - "$BUILT_PRODUCTS_DIR/gtest-filepath_test" - "$BUILT_PRODUCTS_DIR/gtest-linked_ptr_test" - "$BUILT_PRODUCTS_DIR/gtest_main_unittest" - "$BUILT_PRODUCTS_DIR/gtest-message_test" - "$BUILT_PRODUCTS_DIR/gtest_no_test_unittest" - "$BUILT_PRODUCTS_DIR/gtest-options_test" - "$BUILT_PRODUCTS_DIR/gtest-param-test_test" - "$BUILT_PRODUCTS_DIR/gtest-port_test" - "$BUILT_PRODUCTS_DIR/gtest_pred_impl_unittest" - "$BUILT_PRODUCTS_DIR/gtest_prod_test" - "$BUILT_PRODUCTS_DIR/gtest_repeat_test" - "$BUILT_PRODUCTS_DIR/gtest_sole_header_test" - "$BUILT_PRODUCTS_DIR/gtest_stress_test" - "$BUILT_PRODUCTS_DIR/gtest_test_part_test" - "$BUILT_PRODUCTS_DIR/gtest-typed-test_test" +# Create some executables. +test_executables=("$BUILT_PRODUCTS_DIR/gtest_unittest-framework" "$BUILT_PRODUCTS_DIR/gtest_unittest" - - "$BUILT_PRODUCTS_DIR/gtest_break_on_failure_unittest.py" - "$BUILT_PRODUCTS_DIR/gtest_color_test.py" - "$BUILT_PRODUCTS_DIR/gtest_env_var_test.py" - "$BUILT_PRODUCTS_DIR/gtest_filter_unittest.py" - "$BUILT_PRODUCTS_DIR/gtest_list_tests_unittest.py" - "$BUILT_PRODUCTS_DIR/gtest_output_test.py" - "$BUILT_PRODUCTS_DIR/gtest_xml_outfiles_test.py" - "$BUILT_PRODUCTS_DIR/gtest_xml_output_unittest.py" - "$BUILT_PRODUCTS_DIR/gtest_uninitialized_test.py" -) + "$BUILT_PRODUCTS_DIR/sample1_unittest-framework" + "$BUILT_PRODUCTS_DIR/sample1_unittest-static") # Now execute each one in turn keeping track of how many succeeded and failed. succeeded=0 @@ -60,7 +27,7 @@ for test in ${test_executables[*]}; do fi done -# Report the successes and failures to the console +# Report the successes and failures to the console. echo "Tests complete with $succeeded successes and $failed failures." if [ $failed -ne 0 ]; then echo "The following tests failed:" -- cgit v1.2.3 From 4d004650c9aa48fcad827d0096b773e3b59727ef Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Tue, 29 Dec 2009 03:19:01 +0000 Subject: Adds proper license to the xcode build scripts. --- xcode/Scripts/runtests.sh | 29 +++++++++++++++++++++++++++++ xcode/Scripts/versiongenerate.py | 35 ++++++++++++++++++++++++++++++++--- 2 files changed, 61 insertions(+), 3 deletions(-) (limited to 'xcode/Scripts') diff --git a/xcode/Scripts/runtests.sh b/xcode/Scripts/runtests.sh index 9d23a772..3fc229f1 100644 --- a/xcode/Scripts/runtests.sh +++ b/xcode/Scripts/runtests.sh @@ -1,4 +1,33 @@ #!/bin/bash +# +# Copyright 2008, Google Inc. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following disclaimer +# in the documentation and/or other materials provided with the +# distribution. +# * Neither the name of Google Inc. nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Executes the samples and tests for the Google Test Framework. diff --git a/xcode/Scripts/versiongenerate.py b/xcode/Scripts/versiongenerate.py index 3b19a96b..81de8c96 100644 --- a/xcode/Scripts/versiongenerate.py +++ b/xcode/Scripts/versiongenerate.py @@ -1,4 +1,33 @@ -#/usr/bin/python +#!/usr/bin/env python +# +# Copyright 2008, Google Inc. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following disclaimer +# in the documentation and/or other materials provided with the +# distribution. +# * Neither the name of Google Inc. nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """A script to prepare version informtion for use the gtest Info.plist file. @@ -13,7 +42,7 @@ 1. The AC_INIT macro will be contained within the first 1024 characters of configure.ac 2. The version string will be 3 integers separated by periods and will be - surrounded by squre brackets, "[" and "]" (e.g. [1.0.1]). The first + surrounded by squre brackets, "[" and "]" (e.g. [1.0.1]). The first segment represents the major version, the second represents the minor version and the third represents the fix version. 3. No ")" character exists between the opening "(" and closing ")" of @@ -25,7 +54,7 @@ import re # Read the command line argument (the output directory for Version.h) if (len(sys.argv) < 3): - print "Usage: /usr/bin/python versiongenerate.py input_dir output_dir" + print "Usage: versiongenerate.py input_dir output_dir" sys.exit(1) else: input_dir = sys.argv[1] -- cgit v1.2.3 From 02730de6e3ae9970f532adc99328a06b3cf2ac49 Mon Sep 17 00:00:00 2001 From: Billy Donahue Date: Fri, 21 Aug 2015 13:49:44 -0400 Subject: Exported by script --- xcode/Scripts/versiongenerate.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 xcode/Scripts/versiongenerate.py (limited to 'xcode/Scripts') diff --git a/xcode/Scripts/versiongenerate.py b/xcode/Scripts/versiongenerate.py old mode 100644 new mode 100755 -- cgit v1.2.3