blob: d47f8493627489eb67cc2a4cd65ac2b654d92cf2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/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 ;
|