mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Merge pull request #541 from revarbat/revarbat_dev
Fix for sed in increment_version.sh
This commit is contained in:
commit
5b62f9f6d7
2 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,8 @@ if [[ "$(cat "$VERFILE")" =~ BOSL_VERSION.*=.*\[([0-9]+),\ *([0-9]+),\ *([0-9]+
|
|||
echo "Current Version: $major.$minor.$revision"
|
||||
echo "New Version: $major.$minor.$new_revision"
|
||||
|
||||
sed -i 's/^BOSL_VERSION = .*$/BOSL_VERSION = ['"$major,$minor,$new_revision];/g" "$VERFILE"
|
||||
sed -i.bak -e 's/^BOSL_VERSION = .*$/BOSL_VERSION = ['"$major,$minor,$new_revision];/g" "$VERFILE"
|
||||
rm "$VERFILE".bak
|
||||
else
|
||||
echo "Could not extract version number from $VERFILE" >&2
|
||||
exit 1
|
||||
|
|
|
@ -11,5 +11,6 @@ rm -rf .git
|
|||
git init
|
||||
git add .
|
||||
git commit -m "Purged wiki history."
|
||||
git config pull.rebase false
|
||||
git remote add origin git@github.com:revarbat/BOSL2.wiki.git
|
||||
git push -u --force origin master
|
||||
|
|
Loading…
Reference in a new issue