THRIFT-217. Use "--gen py" instead of "-py" in build scripts
authorDavid Reiss <dreiss@apache.org>
Tue, 2 Dec 2008 02:11:13 +0000 (02:11 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 2 Dec 2008 02:11:13 +0000 (02:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@722333 13f79535-47bb-0310-9956-ffa450edef68

if/regen.sh
test/FastbinaryTest.py
test/py/Makefile.am
test/py/explicit_module/runtest.sh
test/threads/Makefile

index ed25cc6..02e9fa2 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 cd "`dirname $0`"
-../compiler/cpp/thrift -cpp -py reflection_limited.thrift
+../compiler/cpp/thrift --gen cpp --gen py reflection_limited.thrift
 cp gen-cpp/reflection_limited_types.h   ../lib/cpp/src/
 cp gen-cpp/reflection_limited_types.cpp ../lib/cpp/src/
 cp -r gen-py/thrift/reflection ../lib/py/src
index b27612b..04b3e44 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 r"""
-thrift -py DebugProtoTest.thrift
+thrift --gen py DebugProtoTest.thrift
 ./FastbinaryTest.py
 """
 
index 9155179..252f586 100644 (file)
@@ -21,7 +21,7 @@ TESTS= $(py_unit_tests)
 
 
 gen-py/ThriftTest/__init__.py: ../ThriftTest.thrift
-       $(THRIFT) -py $<
+       $(THRIFT) --gen py $<
 
 clean-local:
        $(RM) -r gen-py
index 8659210..a2b07d2 100755 (executable)
@@ -1,13 +1,13 @@
 #!/bin/bash
 
 rm -rf gen-py
-../../../compiler/cpp/thrift -py test1.thrift || exit 1
-../../../compiler/cpp/thrift -py test2.thrift || exit 1
+../../../compiler/cpp/thrift --gen py test1.thrift || exit 1
+../../../compiler/cpp/thrift --gen py test2.thrift || exit 1
 PYTHONPATH=./gen-py python -c 'import foo.bar.baz' || exit 1
 PYTHONPATH=./gen-py python -c 'import test2' || exit 1
 PYTHONPATH=./gen-py python -c 'import test1' &>/dev/null && exit 1  # Should fail.
 cp -r gen-py simple
-../../../compiler/cpp/thrift -r -py test2.thrift || exit 1
+../../../compiler/cpp/thrift -r --gen py test2.thrift || exit 1
 PYTHONPATH=./gen-py python -c 'import test2' || exit 1
 diff -ur simple gen-py > thediffs
 file thediffs | grep -s -q empty || exit 1
index 59eb4f2..fb133a0 100644 (file)
@@ -37,7 +37,7 @@ CFL   = $(CCFL) $(LFL)
 all: server client
 
 stubs: ThreadsTest.thrift
-       $(THRIFT) -cpp -py ThreadsTest.thrift
+       $(THRIFT) --gen cpp --gen py ThreadsTest.thrift
 
 server: stubs
        g++ -o ThreadsServer $(CFL) ThreadsServer.cpp ./gen-cpp/ThreadsTest.cpp ./gen-cpp/ThreadsTest_types.cpp