blob: 73a44cbf3d7e6b21f6c03e0aa506fcab49f8312b (
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
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
|
#!/bin/bash
CDPATH=""
summary=~/.built_summary
log=~/.built_log
name=`basename $0`
date > $summary
date > $log
config=`cat config.options`
pwd=$PWD
for a in `cat modules`; do
cd build
echo "rm -rf $a*"
rm -rf $a*
cat ../sources/$a*.bz2 | bunzip2 | tar -xf -
cd $a*
result=0
if [ -e nobuild ]; then
action="Skipping"
result=1
fi
if [ $result$name == 0compile_all ]; then
action="Configuring $PWD"
echo $action
rm config.cache >> $log 2>&1
./configure $config >> $log 2>&1
result=$?
fi
if [ $result == 0 ]; then
action="Compiling $PWD"
echo $action
make >> $log 2>&1
result=$?
fi
if [ $result == 0 ]; then
action="Installing $PWD"
echo $action
make install >> $log 2>&1
result=$?
fi
if [ $result == 0 ]; then
action="Done"
echo $action
fi
if [ "$action" == "Skipping" ]; then
echo $PWD skipped.
echo $PWD skipped. >> $summary
elif [ "$action" == "Done" ]; then
echo $PWD build ok. >> $summary
touch nobuild
else
echo ERROR during $action
echo ERROR during $action >> $summary
if [ $a == kdelibs ]; then
echo Aborted!
echo Aborted! >> $summary
exit 1;
fi
fi
cd $pwd;
done
|