mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 08:19:43 +00:00
Fix for sed in increment_version.sh
This commit is contained in:
parent
861e2b641f
commit
4c53de802d
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