Commit 0746ca79 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

auto-build: log tree goes in the root of the build tree

parent e13c4a47
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -253,12 +253,15 @@ build ()
main ()
{
	local old new ref
	local log log_dir log_current
	local dbuild=`config location || echo /tmp/build/`
	dbuild=`dirname "$dbuild".`
	while read old new ref; do
		if [ $((0x$new)) -eq 0 ]; then
			continue
		fi
		if [ "$ref" ]; then
			log="/tmp/build/$ref/`date +%s`.log"
			log="$dbuild/logs/$ref/`date +%s`.log"
			log_dir=`dirname "$log"`
			log_current="$log_dir/current.log"
			mkdir -p "$log_dir"