Commit 08902f56 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

auto-build: location of log files easier to find

Log files are now in /tmp/build/$ref/
parent ab104b2e
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -255,9 +255,13 @@ main ()
	local old new ref
	while read old new ref; do
		if [ "$ref" ]; then
			log=`printf $ref | cksum | cut -f1 -d\ `
			log="/tmp/build.$log.log"
			build "$ref" </dev/null &>"$log" &
			log="/tmp/build/$ref/`date +%s`.log"
			log_dir=`dirname "$log"`
			log_current="$log_dir/current.log"
			mkdir -p "$log_dir"
			[ -e "$log_current" ] && rm "$log_current" || true
			ln -s `basename "$log"` "$log_current"
			build "$ref" </dev/null &>>"$log" &
		fi
	done
}