iproute2.sh (434B)
- #!/bin/sh
- set -ex
- die() {
- echo "die: $@"
- exit 1
- }
- command -v muon || die "Run /extras/muon-stage2.sh"
- cd /extras/iproute2-*/
- {
- printf 'man_man8 = ['
- printf "'%s', " man/man8/*.8
- printf ']\n'
- } > man/man8/meson.build
- ed lib/utils_math.c <<EOF
- /math\.h
- a
- #include <limits.h>
- .
- w
- q
- EOF
- export CC_LD=$CC
- muon setup \
- -Dbuildtype=debugoptimized \
- -Dprefix=/usr \
- build || die
- muon -C build samu
- muon -C build install
- cd -