blob: ab88f3f5940a11e7d79f4161a08a188dcd77ea94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env build
case "${CBUILD:-$(build-dumpmachine)}" in
(*linux*) eval 'build_num_cpus() { nproc; }';;
(*) die "unknown host '${CBUILD}'";;
esac
if test "${BUILDER_CALL_STACK}" = '__main__'; then
for arg; do
case "${arg}" in
(-h|-help|--help) echo 'usage: build num-cpus'; exit 0;;
esac
done
build_num_cpus "${@}"
fi
# vim: filetype=sh
|