From 24ecd4063af8f36ea8c9cb45d1cae4406240be80 Mon Sep 17 00:00:00 2001 From: PHO Date: Thu, 23 Feb 2012 19:20:27 +0900 Subject: [PATCH] #cpu detection for NetBSD --- build-hc-pkg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-hc-pkg b/build-hc-pkg index 87e34ef..27bf1fd 100755 --- a/build-hc-pkg +++ b/build-hc-pkg @@ -16,7 +16,10 @@ function detect_number_of_cpus () { case "$platform" in *-*-darwin) - ioreg -r -c IOCPU | fgrep -c IOCPUNumber + ioreg -r -c IOCPU | fgrep -c \"IOCPUNumber\" + ;; + *-*-netbsd*) + cat /proc/cpuinfo | grep -cE 'processor[[:space:]]*:' ;; *) echo "WARNING: I don't know how to detect the number of processors on this platform." >&2 -- 2.40.0