Commit hnyman's changes
[lede.git] / hnscripts / singlecompile.sh
1 #!/bin/bash
2 #
3 # singlecompile  -  Compile using a single thread. For debug
4
5 echo "...create version info file..."
6 hnscripts/timestampVersion.sh
7 echo "...make world..."
8 mkdir -p logs
9 make V=s 2>&1 | tee logs/build.log | grep -i -E "^make.*(error|[12345]...Entering dir)"
10 [ ${PIPESTATUS[0]} -ne 0 ] && exit 1
11 echo -n "...create build info: "
12 hnscripts/createbuildinfo.sh
13 echo done.
14