Skip to content

Commit

Permalink
Fix set_version script
Browse files Browse the repository at this point in the history
  • Loading branch information
aecio committed Jan 7, 2021
1 parent 868e221 commit 990f7dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions set_version
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ echo "Changing ACHE version from $OLD_VERSION to $NEW_VERSION..."

OS=`uname`
if [[ "$OS" == 'Linux' ]]; then
sed -i "s/version = '$OLD_VERSION'/version = '$NEW_VERSION'/" build.gradle
sed -i "s/version = '$OLD_VERSION'/version = '$NEW_VERSION'/" ache/build.gradle
sed -i "s/ version: $OLD_VERSION/ version: $NEW_VERSION/" conda.recipe/meta.yaml
sed -i "s/ git_tag: $OLD_VERSION/ git_tag: $NEW_VERSION/" conda.recipe/meta.yaml
sed -i "s/version = u'$OLD_VERSION'/version = u'$NEW_VERSION'/" docs/conf.py
sed -i "s/release = u'$OLD_VERSION'/release = u'$NEW_VERSION'/" docs/conf.py
elif [[ "$OS" == 'Darwin' ]]; then
sed -i ".bkp" "s/version = '$OLD_VERSION'/version = '$NEW_VERSION'/" build.gradle
sed -i ".bkp" "s/version = '$OLD_VERSION'/version = '$NEW_VERSION'/" ache/build.gradle
sed -i ".bkp" "s/ version: $OLD_VERSION/ version: $NEW_VERSION/" conda.recipe/meta.yaml
sed -i ".bkp" "s/ git_tag: $OLD_VERSION/ git_tag: $NEW_VERSION/" conda.recipe/meta.yaml
sed -i ".bkp" "s/version = u'$OLD_VERSION'/version = u'$NEW_VERSION'/" docs/conf.py
sed -i ".bkp" "s/release = u'$OLD_VERSION'/release = u'$NEW_VERSION'/" docs/conf.py
rm build.gradle.bkp
rm ache/build.gradle.bkp
rm conda.recipe/meta.yaml.bkp
rm docs/conf.py.bkp
fi
Expand Down

0 comments on commit 990f7dd

Please sign in to comment.