| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | if [scip-shell system . . `[`. $# -ne 1 ]; then |
| 6 | echoscip-shell system . . echo. "Usage: make_release.sh VERSION" |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | VERSION=$1 |
| 11 | |
| 12 | sedscip-shell system . . sed. "s/__version__ = .*/__version__ = \"$VERSION\"/g" -i podman_compose.py |
| 13 | gitscip-shell system . . git. add podman_compose.py |
| 14 | gitscip-shell system . . git. commit -m "Release $VERSION" |
| 15 | |
| 16 | gitscip-shell system . . git. tag "v$VERSION" -m "v$VERSION" -s |
| 17 | |
| 18 | gitscip-shell system . . git. push ssh://github.com/containers/podman-compose main "v$VERSION" |