-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcookall.sh
More file actions
executable file
·72 lines (68 loc) · 1.86 KB
/
Copy pathcookall.sh
File metadata and controls
executable file
·72 lines (68 loc) · 1.86 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
DONELIST=${1:-/tmp/donelist}
. /etc/slitaz/cook.conf
. $WOK/slitaz-toolchain/receipt
SLITAZ_TOOLCHAIN="slitaz-toolchain $DEPENDS"
touch $DONELIST
while true; do
chmod +x $DONELIST
for i in $WOK/*/receipt; do
pkg=$(basename ${i%/receipt})
grep -q "^$pkg$" $DONELIST && continue
grep -q "^$pkg$" $CACHE/broken && continue
unset BUILD_DEPENDS WANTED
HOST_ARCH="i486"
. $i
case " $HOST_ARCH " in
*\ i486\ *|*\ any\ *);;
*) continue;;
esac
for j in $WANTED; do
grep -q "^$j$" $DONELIST || continue 2
grep -q "^$j$" $CACHE/broken && continue 2
done
for j in $BUILD_DEPENDS; do
case " $SLITAZ_TOOLCHAIN " in
*\ $j\ *) continue;;
esac
grep -q "^$j$" $DONELIST || continue 2
grep -q "^$j$" $CACHE/broken && continue 2
done
cooker pkg $PACKAGE
[ $PKGS/$PACKAGE-$VERSION*.tazpkg -nt $DONELIST ] || continue
echo $PACKAGE >> $DONELIST
chmod -x $DONELIST
done
[ -x $DONELIST ] || continue
# try to break build dep loops...
for pkg in gettext python udev cups libQtClucene menu-cache tzdata; do
grep -q "^$pkg$" $DONELIST && continue
grep -q "^$pkg$" $CACHE/broken && continue
. $WOK/$pkg/receipt
cooker pkg $PACKAGE
[ $PKGS/$PACKAGE-$VERSION*.tazpkg -nt $DONELIST ] || continue
echo $PACKAGE >> $DONELIST
continue 2
done
break
done
TODOLIST=/tmp/todolist
# list packages to build and their (build) dependancies
for i in $WOK/*/receipt; do
grep -q "^$(basename ${i%/receipt})$" $DONELIST && continue
unset BUILD_DEPENDS WANTED
HOST_ARCH="i486"
. $i
case " $HOST_ARCH " in
*\ i486\ *|*\ any\ *);;
*) continue;;
esac
grep -q "^$PACKAGE$" $CACHE/broken && echo -n "broken/"
echo -n "$PACKAGE : "
for j in $BUILD_DEPENDS $WANTED; do
grep -q "^$j$" $DONELIST || echo -n "$j "
grep -q "^$j$" $CACHE/broken && echo -n "broken/$j "
done
echo
done > $TODOLIST
echo "$(wc -l $TODOLIST) packages unbuilt in $TODOLIST"