diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-11-18 15:04:23 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-11-18 15:04:23 +0100 |
commit | 3996bff08616bbe2b6a9ce6f5cfe9aaa8aa738cc (patch) | |
tree | 33a890cc32c996e43501e3ea60125da4055179d2 | |
parent | b37c7a2b7692a4f8aa57865df4c00de07a5666dc (diff) |
add dependent updater script
-rw-r--r-- | README.md | 6 | ||||
-rwxr-xr-x | update_netlinklib.sh | 37 |
2 files changed, 43 insertions, 0 deletions
@@ -1,3 +1,9 @@ # netlinklib Shared network interface status library for the rsdsl project. + +You can use the `update_netlinklib.sh` script +to update the dependents to a new version. + +This requires all repositories to be in the exact same directory. +The script must then be run from that directory. diff --git a/update_netlinklib.sh b/update_netlinklib.sh new file mode 100755 index 0000000..e8e927e --- /dev/null +++ b/update_netlinklib.sh @@ -0,0 +1,37 @@ +#! /bin/bash + +TARGETS="radvd pppoe3 dslite netlinkd dhcp4d" + +for T in ${TARGETS}; do + cd ${T} + + set -e + + cargo add --git https://github.com/rsdsl/netlinklib.git rsdsl_netlinklib + cargo update + cargo clippy --target x86_64-unknown-linux-musl + + set +e + + git add Cargo.* + git commit -m "update netlinklib" + git push origin $(git branch --show-current) --tags + git push himbeergit $(git branch --show-current) --tags + + cd .. +done + +cd dnsd + +set -e + +cargo add --git https://github.com/rsdsl/dhcp4d.git rsdsl_dhcp4d +cargo update +cargo clippy --target x86_64-unknown-linux-musl + +set +e + +git add Cargo.* +git commit -m "update dhcp4d" +git push origin $(git branch --show-current) --tags +git push himbeergit $(git branch --show-current) --tags |