File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh -eu
2
+ #
3
+ # Copyright 2024 Intel Corporation.
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0
6
+ #
7
+ # Invoke this script with a version as parameter
8
+ # and it will update all hard-coded devel versions
9
+ # to the tag versions in the source code.
10
+ #
11
+ # Adapted from https://github.com/intel/intel-device-plugins-for-kubernetes/
12
+
13
+ if [ $# != 1 ] || [ " $1 " = " ?" ] || [ " $1 " = " --help" ]; then
14
+ echo " Please provide TAG version as an argument. Usage: $0 <tag_version>" >&2
15
+ exit 1
16
+ fi
17
+
18
+ devel_link=" intel/intel-technology-enabling-for-openshift/main/"
19
+ tag_link=" intel/intel-technology-enabling-for-openshift/$1 /"
20
+
21
+ files=$( git grep -lF $devel_link -- ' *.md' )
22
+
23
+ for file in $files ; do
24
+ sed -i -e " s|$devel_link |$tag_link |g" " $file " ;
25
+ done
You can’t perform that action at this time.
0 commit comments