X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=to_ozlabs;h=5666c9f33b27c1b41cabd09e20289a67d161e35d;hb=HEAD;hp=a4f682a03dbc16b982a2efd3242949513a9f0f8e;hpb=91549361e86db21d2a5434e8bda593052e604411;p=next-scripts diff --git a/to_ozlabs b/to_ozlabs index a4f682a..5b0a440 100755 --- a/to_ozlabs +++ b/to_ozlabs @@ -1,30 +1,26 @@ #!/bin/bash -echo "Updating Linus' tree" -ssh ozlabs.org "cd kernels/linus.git; git remote update" +GIT_REPOS='next next-fixes' -echo "Pushing next" -cd ~/kernels/next/next -git push bilbo -ssh ozlabs.org "cd kernels/next/next; git reset --hard" +NEXT_DIR="$HOME/kernels/next" -echo "Pushing next-history" -cd ~/kernels/next/next-history.git -git push bilbo +if ! cd "$NEXT_DIR"; then + printf '%s: cannot cd to %s\n' "$0" "$NEXT_DIR" 1>&2 + exit 1 +fi -echo "Pushing quilt" -cd ~/kernels/next/quilt -git push bilbo -ssh ozlabs.org "cd kernels/next/quilt; git reset --hard" +printf 'Updating Linus'\'' tree\n' +ssh ozlabs.org 'cd kernels/linus.git; git remote update' -echo "Pushing next-fixes" -cd ~/kernels/next/next-fixes -git push bilbo -ssh ozlabs.org "cd kernels/next/next-fixes; git reset --hard" +cat <