aboutsummaryrefslogtreecommitdiff
path: root/update_netlinklib.sh
blob: f25daa88f1b1bcf97cf228f1aa551703b1c3aaf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /bin/bash

TARGETS="radvd pppoe3 dslite netlinkd dhcp4d dnsd wgd"

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