Skip to content

Commit

Permalink
add script to bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
kambala-decapitator committed May 15, 2021
1 parent 51b52d0 commit 4c99cd0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bump_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

newVersion="$1"
if [[ -z $newVersion ]]; then
echo 'new version must be passed as argument'
exit 1
fi

projectFile='Kodi Remote.xcodeproj/project.pbxproj'
newBranch="bump-$newVersion"

git checkout -b "$newBranch"
sed -E -i '' -e "s/MARKETING_VERSION = .+/MARKETING_VERSION = $newVersion;/" "$projectFile"
git commit -m "bump version to $newVersion" "$projectFile"
git push --set-upstream origin "$newBranch"

0 comments on commit 4c99cd0

Please sign in to comment.