THRIFT-325. Remove a bunch of uses of the old command line format
authorDavid Reiss <dreiss@apache.org>
Tue, 17 Feb 2009 20:28:46 +0000 (20:28 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 17 Feb 2009 20:28:46 +0000 (20:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745242 13f79535-47bb-0310-9956-ffa450edef68

12 files changed:
lib/py/src/TSCons.py
test/DenseLinkingTest.thrift
test/DenseProtoTest.cpp
test/ManyTypedefs.thrift
test/ZlibTest.cpp
test/cpp/Makefile.stress
test/cpp/Makefile.thrift
test/erl/Makefile
test/php/Makefile
test/threads/ThreadsTest.thrift
tutorial/shared.thrift
tutorial/tutorial.thrift

index dce1d01..11f31b2 100644 (file)
@@ -9,7 +9,7 @@ from SCons.Builder import Builder
 
 def scons_env(env, add=''):
   opath = path.dirname(path.abspath('$TARGET'))
-  lstr = 'thrift --cpp -o ' + opath + ' ' + add + ' $SOURCE'
+  lstr = 'thrift --gen cpp -o ' + opath + ' ' + add + ' $SOURCE'
   cppbuild = Builder(action = lstr)
   env.Append(BUILDERS = {'ThriftCpp' : cppbuild})
 
index 90f0bd6..6952e54 100644 (file)
@@ -1,6 +1,6 @@
 /*
-../compiler/cpp/thrift -cpp -dense DebugProtoTest.thrift
-../compiler/cpp/thrift -cpp -dense DenseLinkingTest.thrift
+../compiler/cpp/thrift -gen cpp:dense DebugProtoTest.thrift
+../compiler/cpp/thrift -gen cpp:dense DenseLinkingTest.thrift
 g++ -Wall -g -I../lib/cpp/src -I/usr/local/include/boost-1_33_1 \
   DebugProtoTest.cpp gen-cpp/DebugProtoTest_types.cpp \
   gen-cpp/DenseLinkingTest_types.cpp \
index d65a6c1..2109e5f 100644 (file)
@@ -1,6 +1,6 @@
 /*
-../compiler/cpp/thrift -cpp -dense DebugProtoTest.thrift
-../compiler/cpp/thrift -cpp -dense OptionalRequiredTest.thrift
+../compiler/cpp/thrift --gen cpp:dense DebugProtoTest.thrift
+../compiler/cpp/thrift --gen cpp:dense OptionalRequiredTest.thrift
 g++ -Wall -g -I../lib/cpp/src -I/usr/local/include/boost-1_33_1 \
   gen-cpp/OptionalRequiredTest_types.cpp \
   gen-cpp/DebugProtoTest_types.cpp \
index 447d7d2..7d4c668 100644 (file)
@@ -3,9 +3,9 @@
 /*
 rm -rf gen-* orig-*
 mkdir old new
-thrift -cpp -java -php -phpi -py -rb -xsd -perl -ocaml -erl -hs -strict ManyTypedefs.thrift
+thrift --gen cpp --gen java --gen php --gen phpi --gen py --gen rb --gen xsd --gen perl --gen ocaml --gen erl --gen hs --strict ManyTypedefs.thrift
 mv gen-* old
-../compiler/cpp/thrift -cpp -java -php -phpi -py -rb -xsd -perl -ocaml -erl -hs -strict ManyTypedefs.thrift
+../compiler/cpp/thrift --gen cpp --gen java --gen php --gen phpi --gen py --gen rb --gen xsd --gen perl --gen ocaml --gen erl --gen hs --strict ManyTypedefs.thrift
 mv gen-* new
 diff -ur old new
 rm -rf old new
index 3084728..b63b494 100644 (file)
@@ -1,5 +1,5 @@
 /*
-thrift -cpp DebugProtoTest.thrift
+thrift --gen cpp DebugProtoTest.thrift
 g++ -Wall -g -I../lib/cpp/src -I/usr/local/include/boost-1_33_1 \
   ZlibTest.cpp \
   ../lib/cpp/.libs/libthriftz.a ../lib/cpp/.libs/libthrift.a \
index 6c2244c..61f4241 100644 (file)
@@ -41,7 +41,7 @@ all: stress-test stress-test-nb
 debug: stress-test-debug stress-test-debug-nb
 
 stubs: ../StressTest.thrift
-       $(THRIFT) --cpp --php ../StressTest.thrift
+       $(THRIFT) --gen cpp --gen php ../StressTest.thrift
 
 stress-test-debug-nb: stubs
        g++ -o stress-test-nb $(DCFL) src/nb-main.cpp ./gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp
index fa412aa..9e02802 100644 (file)
@@ -41,7 +41,7 @@ all: server client
 debug: server-debug client-debug
 
 stubs: ../ThriftTest.thrift
-       $(THRIFT) --cpp ../ThriftTest.thrift
+       $(THRIFT) --gen cpp ../ThriftTest.thrift
 
 server-debug: stubs
        g++ -o TestServer $(DCFL) src/TestServer.cpp ./gen-cpp/ThriftTest.cpp ./gen-cpp/ThriftTest_types.cpp
@@ -56,7 +56,7 @@ client: stubs
        g++ -o TestClient $(CFL) src/TestClient.cpp ./gen-cpp/ThriftTest.cpp ./gen-cpp/ThriftTest_types.cpp
 
 small:
-       $(THRIFT) -cpp ../SmallTest.thrift
+       $(THRIFT) --gen cpp ../SmallTest.thrift
        g++ -c $(CCFL) ./gen-cpp/SmallService.cpp ./gen-cpp/SmallTest_types.cpp
 
 clean:
index 8dc756a..037e6ff 100644 (file)
@@ -24,8 +24,8 @@ THRIFT = ../../compiler/cpp/thrift
 
 ${GENDIR}/: ${RPCFILE}
        rm -rf ${GENDIR}
-       ${THRIFT} -erl ${TEST_RPCFILE}
-       ${THRIFT} -erl ${STRESS_RPCFILE}
+       ${THRIFT} --gen erl ${TEST_RPCFILE}
+       ${THRIFT} --gen erl ${STRESS_RPCFILE}
        mkdir -p ${GEN_INCLUDEDIR}
        mkdir -p ${GEN_SRCDIR}
        mkdir -p ${GEN_TARGETDIR}
index 10b430e..d48fb85 100644 (file)
@@ -16,10 +16,10 @@ normal: stubs
 inline: stubs-inline
 
 stubs: ../ThriftTest.thrift
-       $(THRIFT) --phpl ../ThriftTest.thrift
+       $(THRIFT) --gen php ../ThriftTest.thrift
 
 stubs-inline: ../ThriftTest.thrift
-       $(THRIFT) --phpi ../ThriftTest.thrift
+       $(THRIFT) --gen php:inlined ../ThriftTest.thrift
 
 clean:
        $(RM) -r gen-php gen-phpi
index d37b9d7..45df6a4 100755 (executable)
@@ -1,5 +1,3 @@
-#!/usr/local/bin/thrift -cpp -php -perl
-
 service ThreadsTest {
   i32 threadOne(1: i32 sleep=15),
   i32 threadTwo(2: i32 sleep=15),
index 087ee93..c8afecd 100755 (executable)
@@ -1,5 +1,3 @@
-#!/usr/local/bin/thrift --gen cpp --gen java --gen py --php --xsd --perl
-
 /**
  * This Thrift file can be included by other Thrift files that want to share
  * these definitions.
index 1eb83b6..17c5827 100755 (executable)
@@ -1,5 +1,3 @@
-#!/usr/local/bin/thrift --gen cpp --gen java --gen py --php --gen rb --gen perl --erl --xsd -r
-#
 # Thrift Tutorial
 # Mark Slee (mcslee@facebook.com)
 #