kernel makefile target to replace tags using update-component-sha.sh

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher
2024-03-03 16:19:01 +02:00
parent 47bd13a5a5
commit b25b82c106
2 changed files with 32 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ case "${mode}" in
old=$1
new=$2
git grep -w -l "\b$old\b" -- '*.yml' '*.yaml' '*.yml.in' '*.yaml.in' '*/Dockerfile' '*/Makefile' | grep -v /vendor/ | xargs sed -i.bak -e "s,$old,$new,g"
git grep -E -l "\b$old\b" -- '*.yml' '*.yaml' '*.yml.in' '*.yaml.in' '*/Dockerfile' '*/Makefile' | grep -v /vendor/ | while read -r file; do sed -ri.bak -e "s,$old,$new,g" "$file"; done
;;
--image)
if [ $# -lt 1 ] ; then