DF-1185 / build.sh
#!/bin/sh set -e cd "$(dirname "$0")" cc -O2 -o harness harness.c 2>&1 || { echo "build failed (CAM/arcmsr headers may not be in user search path);" echo "trying with explicit includes" cc -O2 -I/usr/src/sys -I/usr/src/sys/dev/raid/arcmsr -o harness harness.c } echo "BUILD_EXIT=$?" ls -l harness 2>/dev/null |