]> git.ozlabs.org Git - next-scripts/commitdiff
to_ozlabs: clean up a bit
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 23 Jul 2013 04:47:14 +0000 (14:47 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 23 Jul 2013 04:47:14 +0000 (14:47 +1000)
also backup the .git/config files
also use git to backup the tools directory

to_ozlabs

index 64a0684ac6482dbe794c699e5b7c767674782f39..4d477585bc85beab456586d7ae18e8c5d0dd33b5 100755 (executable)
--- a/to_ozlabs
+++ b/to_ozlabs
@@ -1,29 +1,35 @@
 #!/bin/bash
 
+cd ~/kernels/next
+
 echo "Updating Linus' tree"
 ssh ozlabs.org "cd kernels/linus.git; git remote update"
 
 echo "Pushing next"
-cd ~/kernels/next/next
-git push bilbo
+( cd next; git push bilbo )
 ssh ozlabs.org "cd kernels/next/next; git reset --hard"
 
 echo "Pushing next-history"
-cd ~/kernels/next/next-history.git
-git push bilbo
+( cd next-history.git; git push bilbo )
 
 echo "Pushing quilt"
-cd ~/kernels/next/quilt
-git push bilbo
+( cd quilt; git push bilbo )
 ssh ozlabs.org "cd kernels/next/quilt; git reset --hard"
 
 echo "Pushing next-fixes"
-cd ~/kernels/next/next-fixes
-git push bilbo
+( cd next-fixes; git push bilbo )
 ssh ozlabs.org "cd kernels/next/next-fixes; git reset --hard"
 
-cd ~/kernels/next
-rsync -avHP --exclude gitk.cache --exclude 'patch-*-next-2*' --exclude next-2'*'/ --include 'next/.git/' --include 'next/.git/rr-cache/' --include 'next/.git/rr-cache/**' --exclude next/'**' --exclude quilt/'**' --exclude next-fixes/'**' --exclude next-history.git/'**' --delete . ozlabs.org:kernels/next/.
+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"