summaryrefslogtreecommitdiffstats
path: root/scripts/dep_hunter.sh
blob: bfb024e26995a59a28db0d27cb9d8cb070b87259 (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
#!/bin/bash
#
# This script compiles all selected packages individually and
# makes clean after each package.
#
# This can be used to search for broken or missing dependencies
# and to compile all selected packages without stopping the whole
# process on broken packages
#
# Just call this script from a workspace dir (at least till it
# is integrated into ptxdist)
# 


packages=$(ptxdist print PACKAGES | grep "PACKAGES is" | sed "s/PACKAGES is \"\(.*\)\"$/\1/")

for i in $packages; do
	# only build if logfile does not exist to be able to restart the script
	if [ ! -f logfile-$i ]; then
		echo $i > logfile;
		ptxdist clean
		ptxdist install $i
		mv logfile logfile-$i
	fi
done