]> git.ozlabs.org Git - next-scripts/blob - to_ozlabs
to_ozlabs: clean up a bit
[next-scripts] / to_ozlabs
1 #!/bin/bash
2
3 cd ~/kernels/next
4
5 echo "Updating Linus' tree"
6 ssh ozlabs.org "cd kernels/linus.git; git remote update"
7
8 echo "Pushing next"
9 ( cd next; git push bilbo )
10 ssh ozlabs.org "cd kernels/next/next; git reset --hard"
11
12 echo "Pushing next-history"
13 ( cd next-history.git; git push bilbo )
14
15 echo "Pushing quilt"
16 ( cd quilt; git push bilbo )
17 ssh ozlabs.org "cd kernels/next/quilt; git reset --hard"
18
19 echo "Pushing next-fixes"
20 ( cd next-fixes; git push bilbo )
21 ssh ozlabs.org "cd kernels/next/next-fixes; git reset --hard"
22
23 echo "Pushing tools"
24 ( cd tools; git push bilbo )
25 ssh ozlabs.org "cd kernels/next/tools; git reset --hard"
26
27 rsync -avHP --exclude gitk.cache --exclude 'patch-*-next-2*' \
28         --exclude next-2'*'/ --include '.git/' --include .git/config \
29         --include 'next/.git/rr-cache/' --include 'next/.git/rr-cache/**' \
30         --exclude next/'**' --exclude quilt/'**' --exclude next-fixes/'**' \
31         --exclude next-history.git/'**' --exclude tools/'**' \
32         --delete . ozlabs.org:kernels/next/.
33
34 ssh ozlabs.org "touch kernels/NEXT-DONE"
35
36 exit 0