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