This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/bin/bash
|
|
export NEW_VER=$1
|
|
pwd
|
|
sed -i 's/\(^\s*version\)\s*=\s*"\([^"]*\)"$/\1 = "'$NEW_VER'"/g' Cargo.toml
|
|
find * -name 'Cargo.toml' -type f \
|
|
-exec sed -i 's/\(libpt.*version\s*=\s*\)"[^"]*"/\1"'$NEW_VER'"/g' Cargo.toml {} +
|