forked from trinitrix/core
build(update.sh): Make adding subcrates easier
This commit is contained in:
parent
2eb6b12bd7
commit
23ec51cec2
20
update.sh
20
update.sh
|
@ -1,13 +1,19 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
update() {
|
||||||
|
cd "$1" || (echo "No '$1' directory" && exit 1)
|
||||||
|
|
||||||
|
cargo update && cargo upgrade
|
||||||
|
|
||||||
|
[ "$1" = "." ] || cd ..
|
||||||
|
}
|
||||||
|
|
||||||
|
update .
|
||||||
|
update ./language_macros
|
||||||
|
update ./keymaps
|
||||||
|
|
||||||
|
|
||||||
cargo update && cargo upgrade
|
|
||||||
|
|
||||||
cd ./language_macros || (echo "No language_macros directory" && exit 1)
|
|
||||||
|
|
||||||
cargo update && cargo upgrade
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
git add Cargo.lock Cargo.toml flake.lock ./language_macros/Cargo.toml
|
git add Cargo.lock Cargo.toml flake.lock ./language_macros/Cargo.toml
|
||||||
|
|
||||||
# vim: ft=sh
|
# vim: ft=sh
|
||||||
|
|
Loading…
Reference in New Issue