aboutsummaryrefslogtreecommitdiff
blob: 431912e49037b7d8cd21ed0e09231fad1081eb25 (plain)
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
29
30
31
32
33
#!/bin/bash

source /tmp/chroot-functions.sh

# START THE BUILD
setup_pkgmgr

# Backup pristine system

rsync -avx --exclude "/root/" --exclude "/tmp/" --exclude "${clst_repo_basedir}/${clst_repo_name}/" / \
	/tmp/rsync-bak/

for x in ${clst_tinderbox_packages}
do
	if [[ "${clst_VERBOSE}" == "true" ]]
	then
		run_merge --usepkg --buildpkg --newuse -vp $x
	fi

	mkdir -p /tmp/packages/$x
	export PORT_LOGDIR="/tmp/packages/$x"
	run_merge $x

	if [ "$?" != "0" ]
	then
		echo "! $x" >> /tmp/tinderbox.log
	else
		echo "$x" >> /tmp/tinderbox.log
	fi
	echo "Syncing from original pristine tinderbox snapshot..."
	rsync -avx --delete --exclude "/root/*" --exclude "/tmp/" --exclude \
		"${clst_repo_basedir}/${clst_repo_name}/" /tmp/rsync-bak/ /
done