auto commit
[opensuse:package-lists.git] / doitall.sh
1 #! /bin/sh
2
3 git pull
4
5 . ./options
6
7 (cd osc/openSUSE\:Factory/_product/ && osc up)
8 : > output/opensuse/frozen.xml
9 for i in `grep "package name=" osc/openSUSE\:Factory/_product/FROZEN.group | cut -d\" -f2`; do
10    echo "<lock package='$i'/>" >> output/opensuse/frozen.xml
11 done
12 cd testtrack/
13 ./update_full.sh $tree-i586 $tree-x86_64 
14 echo -n "updating patterns "
15 if ./unpack_patterns.sh $diffonly > patterns.log 2>&1; then
16    touch ../dirty
17    echo "done"
18 else
19    echo "unchanged"
20 fi 
21 cd ..
22 osc api "/build/openSUSE:$proj/_result?package=bash&repository=standard" > /tmp/state
23 if grep -q 'dirty="true"' /tmp/state || grep -q 'state="building"' /tmp/state; then
24    echo "standard still dirty"
25    if ! test -f dirty; then
26      ./rebuildppc.sh
27    fi
28    if test -z "$FORCE"; then
29      exit 0
30    fi
31 fi
32 # now sync again
33 cd testtrack
34 WITHDESCR=1 ./update_full.sh $tree-i586 $tree-x86_64 || touch ../dirty
35 cd ..
36
37 installcheck i586 testtrack/full-$tree-i586/suse/setup/descr/packages > output/opensuse/missingdeps.tmp || true
38 installcheck x86_64 testtrack/full-$tree-x86_64/suse/setup/descr/packages >> output/opensuse/missingdeps.tmp || true
39 perl processdeps.pl openSUSE:$proj < output/opensuse/missingdeps.tmp > output/opensuse/missingdeps
40 grep "nothing provides" output/opensuse/missingdeps  | sort -u > /tmp/missingdeps
41 echo "INSTALLCHECK:"
42 cat output/opensuse/missingdeps
43 echo "<<<"
44
45 if test -f dirty; then
46   if ! ./rebuildpacs.sh; then
47      exit 0
48   fi
49   ./doit.sh
50 fi
51
52 cd update-tests
53 test -f ../dirty && ./testall.sh
54 cd ..
55
56 for f in output/opensuse/*.list; do
57   saved=saved/`basename $f`
58   if cmp -s $f $saved; then
59     # reset timestamp
60     cp -a $saved $f
61   fi
62 done 
63
64 if test -f dirty; then
65    ./gen.sh opensuse/x11_cd-boottest x86_64
66
67    cp -a output/opensuse/*.list saved
68 fi
69
70 set -e
71
72 #if perl create-requires x86_64 ; then
73 #  perl create-requires i586 || true
74 #fi
75  
76 ./check_yast.sh output/opensuse/dvd-i586.list __i386__
77 ./check_yast.sh output/opensuse/dvd-x86_64.list __x86_64__
78
79 (
80 ./check_size.sh output/opensuse/dvd-i586.list i586
81 ./check_size.sh output/opensuse/dvd-x86_64.list x86_64
82 ) | tee sizes
83
84 ./commit.sh
85
86 git commit -m "auto commit" -a
87 echo "all done"
88 git push || true
89
90 rm -fv dirty
91 #./rebuildppc.sh