aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/bin
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-04-08 15:49:56 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-04-08 15:49:56 -0700
commit35d06e99fb310c81b1fdd79a8ffda2a5bb3fe02f (patch)
tree58f6d35ed7882c186e3c887aa9410cceb0247f78 /src/php/bin
parent59838499889025fab037db4fcd0201f4bc45702d (diff)
Simplified script
Diffstat (limited to 'src/php/bin')
-rwxr-xr-xsrc/php/bin/generate_proto_php.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/php/bin/generate_proto_php.sh b/src/php/bin/generate_proto_php.sh
index 3cc07aba34..16f93747ab 100755
--- a/src/php/bin/generate_proto_php.sh
+++ b/src/php/bin/generate_proto_php.sh
@@ -32,12 +32,9 @@
set +e
cd $(dirname $0)
-cd ../tests/generated_code
+gen_code='../tests/generated_code'
+interop='../tests/interop'
-protoc-gen-php -i . -o . ./math.proto
+protoc-gen-php -i $gen_code -o $gen_code $gen_code/math.proto
-cd -
-
-cd ../tests/interop
-
-protoc-gen-php -i . -o . ./test.proto
+protoc-gen-php -i $interop -o $interop $interop/test.proto