Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions misc/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,28 @@ fi

if [[ $current_version == $next_version ]]; then
echo "Error: The current version is already '$1'."
exit 1
exit 1
fi

echo "Bumping version: '$current_version' -> '$next_version'"

update_file () {
echo "Updating file: $1"
sed -i -e "s/${current_version//./\\.}/$next_version/g" "../$1"

if [[ $? -ne 0 ]]; then
echo ""
echo "Error: The file '$1' could not be found! Aborting."
exit 1
fi
}

update_file "deploy/azure-terraform/variables.tf"
update_file "docs/pages/installation/azure-terraform.md"
update_file "docs/pages/installation/docker-compose.md"
update_file "src/Turnierplan.App/Client/package.json"
update_file "src/Turnierplan.App/Client/src/environments/environment.prod.ts"
update_file "src/version.xml"
update_file "src/version.xml"

echo ""
echo "All files updated successfully!"