3 # This script updates all our generated files and exports them to a given
4 # directory. This is intended to simplify the process of updating these from
5 # google3. After copybara generates a branch for testings, run the following
8 # git checkout upstream/<copybara branch>
9 # ./google3_export_generated_files <ldap>/<citc_workspace>
11 # Note: this is a temporary script and won't be needed once we automatically
16 OUTPUT_PATH
=/google
/src
/cloud
/$1/google
3/third_party
/protobuf
/github
23 bazel build
//$TARGET_DIR:$TARGET
24 bazel-bin
/$TARGET_DIR/$TARGET --fix
25 for file in $GEN_FILES; do
26 cp $GEN_PATH/$file $OUTPUT_PATH/$GEN_PATH/
30 update_staleness ruby
/ext
/google
/protobuf_c test_amalgamation_staleness ruby
/ext
/google
/protobuf_c ruby-upb.
*
31 update_staleness php test_amalgamation_staleness php
/ext
/google
/protobuf php-upb.
*