Skip to content

Commit 79bbf1d

Browse files
ericsalocopybara-github
authored andcommitted
add refresh_gencode.sh script to Java smoke tests (#25671)
Closes #25671 COPYBARA_INTEGRATE_REVIEW=#25671 from protocolbuffers:salo-script 6e81bbd PiperOrigin-RevId: 865150539
1 parent 3247dca commit 79bbf1d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/bash
2+
# Run this script to update the gencode for all version subdirs.
3+
# Answer yes when prompted about removing write-protected files.
4+
5+
set -e -x
6+
7+
build="BUILD.bazel"
8+
9+
# Copy and eventually restore the original build file.
10+
cp "${build}" "${build}".original
11+
trap "mv ${build}.original ${build}" EXIT
12+
13+
# Update the subdirs.
14+
for file in v*; do
15+
add_gencode.sh "${file:1}"
16+
done

0 commit comments

Comments
 (0)