-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtriage-build.sh
48 lines (39 loc) · 1.07 KB
/
triage-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
## -----------------------------------------------------------------------
## -----------------------------------------------------------------------
ccyymmdd="$(date '+%Y%m%d')"
while [[ $# -gt 0 ]]; do
arg="$1"; shift
case "$arg" in
--submit) declare -i do_submit=1 ;;
esac
done
git checkout -b dev-joey
declare -a find_args
find_args+=('-o' '*.robot')
find_args+=('-o' '*.sh')
find_args+=('-o' '*.yml')
find_args+=('-o' '*.yaml')
readarray -t files < <(find . \( -name '*.go' "${find_args[@]}" \) -print | grep -v '/vendor/')
for file in "${files[@]}";
do
tmp="${file}.tmp"
(
case "$file" in
*go) echo "// ${eof_comment}" ;;
*) echo "# ${eof_comment}" ;;
esac
) > "$tmp"
mv "$tmp" "$file"
done
update_robot
ver=$(cat VERSION)
echo "${ver/-dev/}-dev-joey" > VERSION
git add --all
git commit --message 'Cosmetic edits to force a triage build'
rebase.sh
if [[ -v do_submit ]]; then
reviewers.sh --none
echo "ready to submit"
fi
# [EOF] - 20231222: Ignore, this triage patch will be abandoned