Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

30 строки
921 B

  1. #!/bin/bash -e
  2. (cd $GOPATH/src/google.golang.org/api; make generator)
  3. $GOPATH/bin/google-api-go-generator \
  4. -api_json_file translate-nov2016-api.json \
  5. -api_pkg_base cloud.google.com/go/translate/internal \
  6. -output translate-nov2016-gen.nolicense
  7. cat - translate-nov2016-gen.nolicense > translate-nov2016-gen.go <<EOF
  8. // Copyright 2016 Google LLC
  9. //
  10. // Licensed under the Apache License, Version 2.0 (the "License");
  11. // you may not use this file except in compliance with the License.
  12. // You may obtain a copy of the License at
  13. //
  14. // http://www.apache.org/licenses/LICENSE-2.0
  15. //
  16. // Unless required by applicable law or agreed to in writing, software
  17. // distributed under the License is distributed on an "AS IS" BASIS,
  18. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. // See the License for the specific language governing permissions and
  20. // limitations under the License.
  21. EOF