diff options
author | 2020-01-03 00:49:39 +0000 | |
---|---|---|
committer | 2020-01-03 00:49:39 +0000 | |
commit | 3afbc923dc0fd1e00f75e445787b65167e40900a (patch) | |
tree | 7c196dd97d41c10ab3e1fd15a0bc1c14a91c6409 /scripts/gen-java-current-api-files.sh | |
parent | 17c42bd105224fdb6bac2565e728ec5532da83bb (diff) | |
parent | 37e0b77e3b349c776b7a1970265e4c1f2dc00379 (diff) |
Merge "java_sdk_library: Avoid generating system and test .txt files"
Diffstat (limited to 'scripts/gen-java-current-api-files.sh')
-rwxr-xr-x | scripts/gen-java-current-api-files.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/gen-java-current-api-files.sh b/scripts/gen-java-current-api-files.sh index 517d3916e..902fc2f50 100755 --- a/scripts/gen-java-current-api-files.sh +++ b/scripts/gen-java-current-api-files.sh @@ -15,15 +15,16 @@ # limitations under the License. if [[ -z "$1" ]]; then - echo "usage: $0 <modulePath>" >&2 + echo "usage: $0 <modulePath> scopes..." >&2 exit 1 fi api_dir=$1/api +shift mkdir -p "$api_dir" -scopes=("" system- test-) +scopes=("" "$@") apis=(current removed) for scope in "${scopes[@]}"; do @@ -31,3 +32,4 @@ for scope in "${scopes[@]}"; do touch "${api_dir}/${scope}${api}.txt" done done + |