Debian Codegraph @

scripts/bump-version.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 set -euo pipefail
3
4 if [scip-shell system . . `[`. "$(unamescip-shell system . . uname. -s)" != "Linux" ]; then
5 echoscip-shell system . . echo. "Please use the GitHub Action."
6 exit 1
7 fi
8
9 SCRIPT_DIR="$( cd "$( dirnamescip-shell system . . dirname. "${BASH_SOURCE[0]}" )" && pwdscip-shell system . . pwd. )"
10 cd $SCRIPT_DIR/..
11
12 OLD_VERSION="${1}"
13 NEW_VERSION="${2}"
14
15 echoscip-shell system . . echo. "Bumping version: ${NEW_VERSION}"
16
17 findscip-shell system . . find. . -name Cargo.toml -type f -exec sed -i '' -e "s/^version.*/version = \"$NEW_VERSION\"/" {} \;