Chromium Code Reviews| Index: build/protoc_java.sh |
| diff --git a/remoting/tools/is-remoting-session b/build/protoc_java.sh |
| similarity index 57% |
| copy from remoting/tools/is-remoting-session |
| copy to build/protoc_java.sh |
| index 8f81755e9e0b40462427f8ab84e7bff05588dcfb..1956830b018782267ff2ac00ce5596d4e1ea64ea 100755 |
| --- a/remoting/tools/is-remoting-session |
| +++ b/build/protoc_java.sh |
| @@ -1,9 +1,13 @@ |
| #!/bin/bash |
| - |
| # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| - |
| -# Test whether or not the current desktop is virtual Me2Me. |
| - |
| -[ -n "$CHROME_REMOTE_DESKTOP_SESSION" ] |
| +if [ -d "$3" ]; then |
| + rm -rf $3 |
| +fi |
| +if [ -e "$4" ]; then |
| + rm -f $4 |
| +fi |
| +mkdir -p $3 |
| +$1 --proto_path $2 --java_out $3 "${@:5}" |
| +touch $4 |
|
Ryan Sleevi
2012/10/30 00:50:43
Seems like you will want to get someone with bash
nyquist
2012/10/31 17:49:33
Changed to use Python.
|