Use nice to build releases
#!/bin/bash
cd `dirname $0`
TS=`date +%Y%m%d`
+NICE=2
for i in 2 3 4 0w; do
if [ "$1" == "parallel" ]; then
- screen -d -m ./build-release $i $TS
- echo "Started $i build"
+ screen -d -m nice $NICE ./build-release $i $TS
+ echo "Started $i build with nice level $NICE"
+ NICE=$((NICE+1))
sleep 300
else
./build-release $i $TS
