forked from trinitrix/core
21 lines
338 B
Bash
Executable File
21 lines
338 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
update() {
|
|
cd "$1" || (echo "No '$1' directory" && exit 1)
|
|
|
|
cargo update && cargo upgrade
|
|
|
|
[ "$1" = "." ] || cd ..
|
|
}
|
|
|
|
update .
|
|
|
|
cd ./trinitry || (echo "No trinitry directory" && exit 1)
|
|
cargo update && cargo upgrade
|
|
./update.sh > ./src/tests.rs
|
|
cd ..
|
|
|
|
git add Cargo.lock Cargo.toml flake.lock
|
|
|
|
# vim: ft=sh
|