Browse Source
Altera mudança que causou incompatibilidade com macOS (#3724)
fix: altera mudanca que causou imcompatibilidade com macos
pull/3725/head
joaohortsenado
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
13 additions and
8 deletions
-
release.sh
|
|
@ -43,14 +43,19 @@ function change_files { |
|
|
|
|
|
|
|
echo "Updating from "$OLD_VERSION" to "$FINAL_VERSION"" |
|
|
|
|
|
|
|
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" docker/docker-compose.yaml |
|
|
|
|
|
|
|
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" setup.py |
|
|
|
|
|
|
|
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/templates/base.html |
|
|
|
|
|
|
|
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/settings.py |
|
|
|
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then |
|
|
|
# MacOS (BSD sed) |
|
|
|
sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" docker/docker-compose.yaml |
|
|
|
sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" setup.py |
|
|
|
sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/templates/base.html |
|
|
|
sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/settings.py |
|
|
|
else |
|
|
|
# Linux (GNU sed) |
|
|
|
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" docker/docker-compose.yaml |
|
|
|
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" setup.py |
|
|
|
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/templates/base.html |
|
|
|
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/settings.py |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
function set_major_version { |
|
|
|