Lines Matching +full:deep +full:- +full:copy +full:- +full:regex
9 # $ set_owlbot_config.sh java-dataform/.OwlBot.yaml
12 # $ for F in `find . -maxdepth 2 -name '.OwlBot.yaml'`; do sh generation/set_owlbot_config.sh $F; d…
14 for F in `find . -maxdepth 2 -name '.OwlBot.yaml'`;
19 if [ -z "${OWLBOT_FILE}" ]; then
24 if [ ! -r "${OWLBOT_FILE}" ]; then
32 if [ ! -d "${module_name}" ]; then
37 # For deep-remove-regex and deep-preserve-regex fields
38 sed -i.bak "s|\"/grpc-google|\"/${module_name}/grpc-google|" "${OWLBOT_FILE}" && rm "${OWLBOT_FILE}…
39 sed -i.bak "s|\"/proto-google|\"/${module_name}/proto-google|" "${OWLBOT_FILE}" && rm "${OWLBOT_FIL…
40 sed -i.bak "s|\"/google-\.\*|\"/${module_name}/google-.*|" "${OWLBOT_FILE}" && rm "${OWLBOT_FILE}".…
41 sed -i.bak "s|\"/google-cloud|\"/${module_name}/google-cloud|" "${OWLBOT_FILE}" && rm "${OWLBOT_FIL…
42 sed -i.bak "s|\"/samples|\"/${module_name}/samples|" "${OWLBOT_FILE}" && rm "${OWLBOT_FILE}".bak
46 if grep --quiet 'owl-bot-staging/$1' "${OWLBOT_FILE}"; then
47 …sed -i.bak "s|owl-bot-staging|owl-bot-staging/${module_name}|" "${OWLBOT_FILE}" && rm "${OWLBOT_FI…
52 if ! grep -q samples/snippets/generated ${OWLBOT_FILE}; then
53 # Insert into `deep-remove-regex:` section
54 deep_remove_regex="- \"\/${module_name}\/samples\/snippets\/generated\""
55 entry_before_deep_remove_regex="${module_name}\/google-.*\/src"
56 sed -i.bak "/${entry_before_deep_remove_regex}/a ${deep_remove_regex}" ${OWLBOT_FILE} && rm "${OWLB…
59 # Insert into `deep-copy-regex:` section
60 proto_path=$(grep -oPm1 '(?<=source: ").*(?=\(v.*\))' "${OWLBOT_FILE}")
61 deep_copy_regex="- source: \"${proto_path}(v.*)/.*-java/samples/snippets/generated\"\n dest: \"/ow…
63 entry_before_deep_copy_regex="dest: \"\/owl-bot-staging\/${module_name}\/\$1\/google-"
66 sed -i.bak "/${entry_before_deep_copy_regex}/a ${deep_copy_regex}" ${OWLBOT_FILE} && rm "${OWLBOT_F…
69 perl -i -ne 'if ( /^\s*#/ ) { print } else { print if ! $SEEN{$_}++}' ${OWLBOT_FILE}
72 sed -i.bak 's/deep-copy-regex/\n&/g' ${OWLBOT_FILE} && rm "${OWLBOT_FILE}".bak
73 sed -i.bak 's/deep-remove-regex/\n&/g' ${OWLBOT_FILE} && rm "${OWLBOT_FILE}".bak
74 sed -i.bak 's/deep-preserve-regex/\n&/g' ${OWLBOT_FILE} && rm "${OWLBOT_FILE}".bak
75 sed -i.bak 's/api-name/\n&/g' ${OWLBOT_FILE} && rm "${OWLBOT_FILE}".bak