aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rwxr-xr-xupdate_netlinklib.sh37
2 files changed, 43 insertions, 0 deletions
diff --git a/README.md b/README.md
index e6f9980..c7d1d09 100644
--- a/README.md
+++ b/README.md
@@ -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