#!/usr/bin/env sh if [ ! -d "/usr/src" ]; then echo "/usr/src directory does not exist" exit fi if [ ! -d "/usr/xsrc" ]; then echo "/usr/xsrc directory does not exist" exit fi if [ ! $(command -v cvs) ]; then echo "cvs command not found" exit fi cd /usr/xsrc ; cvs update -dP -r netbsd-10-1-RELEASE ; cd /usr/src ; cvs update -dP -r netbsd-10-1-RELEASE ; # Build with Xsrc /usr/src/build.sh -j $(sysctl -n hw.ncpu) -c clang -O /usr/obj/ -T /usr/tools/ -x -X /usr/xsrc -U -u -P distribution kernel=GENERIC ; # Build without X #/usr/src/build.sh -j $(sysctl -n hw.ncpu) -c clang -O /usr/obj/ -T /usr/tools/ -U -u -P distribution kernel=GENERIC ;