summaryrefslogtreecommitdiffstats
path: root/.local/bin/update_bsd.sh
blob: ca6d3923424eff25d0113c15c9baec742dbd634e (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 release 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 release kernel=GENERIC ;