]> git.ozlabs.org Git - next-scripts/blob - to_ozlabs
check_commits: speed up somewhat and produce usable output
[next-scripts] / to_ozlabs
1 #!/bin/bash
2
3 GIT_REPOS="next next-history.git quilt next-fixes tools etc mmotm"
4
5 cd ~/kernels/next
6
7 echo "Updating Linus' tree"
8 ssh ozlabs.org "cd kernels/linus.git; git remote update"
9
10 for i in $GIT_REPOS; do
11         echo "Pushing $i"
12         ( cd $i; git push --prune bilbo )
13         [ "${i%.git}" = "$i" ] &&
14                 ssh ozlabs.org "cd kernels/next/$i; git reset --hard"
15 done
16
17 {
18         cat <<EOF
19 - gitk.cache
20 - /merge.debug
21 - /merge.log
22 - /quilt-import.log
23 - /akpm-import.log
24 - /summ
25 - /patch-*-next-2*
26 - /next-2*/
27 + .git/
28 + .git/config
29 + .git/hooks
30 + .git/hooks/**
31 + /next/.git/rr-cache/
32 + /next/.git/rr-cache/**
33 EOF
34         for i in $GIT_REPOS; do
35                 echo "- $i/**"
36         done
37 } | rsync -avHP --include-from - --delete . ozlabs.org:kernels/next/.
38
39 ssh ozlabs.org "touch kernels/NEXT-DONE"
40
41 # Fix up the git configs so that the next pushes will work
42 ssh ozlabs.org 'cd kernels/next; for i in '"$GIT_REPOS"'; do ( cd $i; git config receive.denyCurrentBranch ignore; ); done'
43
44 exit 0