#!/bin/bash cd ~/kernels/next echo "Updating Linus' tree" ssh ozlabs.org "cd kernels/linus.git; git remote update" echo "Pushing next" ( cd next; git push bilbo ) ssh ozlabs.org "cd kernels/next/next; git reset --hard" echo "Pushing next-history" ( cd next-history.git; git push bilbo ) echo "Pushing quilt" ( cd quilt; git push bilbo ) ssh ozlabs.org "cd kernels/next/quilt; git reset --hard" echo "Pushing next-fixes" ( cd next-fixes; git push bilbo ) ssh ozlabs.org "cd kernels/next/next-fixes; git reset --hard" echo "Pushing tools" ( cd tools; git push bilbo ) ssh ozlabs.org "cd kernels/next/tools; git reset --hard" rsync -avHP --exclude gitk.cache --exclude 'patch-*-next-2*' \ --exclude next-2'*'/ --include '.git/' --include .git/config \ --include 'next/.git/rr-cache/' --include 'next/.git/rr-cache/**' \ --exclude next/'**' --exclude quilt/'**' --exclude next-fixes/'**' \ --exclude next-history.git/'**' --exclude tools/'**' \ --delete . ozlabs.org:kernels/next/. ssh ozlabs.org "touch kernels/NEXT-DONE" exit 0