blob: d53b7b9f724c23bde721ccc640709a59403474ed (
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
|
#!/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)
#
PTXDIST=${PTXDIST:-ptxdist}
packages="$(${PTXDIST} print PACKAGES-y) $(${PTXDIST} print PACKAGES-m)"
platform="platform-$(${PTXDIST} print PTXCONF_PLATFORM)"
logfile="$platform/logfile"
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 || echo $i >> failed
mv $logfile logfile-$i
fi
done
|