-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add scripts to change kmesh version automatically
Signed-off-by: LiZhenCheng9527 <[email protected]>
- Loading branch information
1 parent
e08a108
commit 1fa7f2f
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# Check if a Makefile exists in the current directory | ||
if [ ! -f "Makefile" ]; then | ||
echo "Error: Makefile not found in the current directory." | ||
exit 1 | ||
fi | ||
|
||
# Check if the VERSION argument is provided | ||
if [ -z "$1" ]; then | ||
echo "Usage: $0 VERSION=<value>" | ||
exit 1 | ||
fi | ||
|
||
# Extract the VERSION value from the argument | ||
version=$(echo "$1" | sed 's/VERSION=//g') | ||
|
||
# Update the VERSION parameter in the Makefile | ||
sed -i "s/^VERSION.*$/VERSION ?= $version/" Makefile | ||
sed -i "s/^CHART_VERSION.*$/CHART_VERSION ?= $version/" Makefile |