X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=to_ozlabs;h=5666c9f33b27c1b41cabd09e20289a67d161e35d;hb=HEAD;hp=5237cf2f65351a2b22e906469c7b4963c15ee6ac;hpb=45c2cd7265f811768f6eda00b80bc0c2dfa933e5;p=next-scripts diff --git a/to_ozlabs b/to_ozlabs index 5237cf2..5b0a440 100755 --- a/to_ozlabs +++ b/to_ozlabs @@ -1,42 +1,26 @@ #!/bin/bash -GIT_REPOS="next next-history.git quilt next-fixes tools etc mmotm" +GIT_REPOS='next next-fixes' -cd ~/kernels/next +NEXT_DIR="$HOME/kernels/next" -echo "Updating Linus' tree" -ssh ozlabs.org "cd kernels/linus.git; git remote update" +if ! cd "$NEXT_DIR"; then + printf '%s: cannot cd to %s\n' "$0" "$NEXT_DIR" 1>&2 + exit 1 +fi -for i in $GIT_REPOS; do - echo "Pushing $i" - ( cd $i; git push bilbo ) - [ "${i%.git}" = "$i" ] && - ssh ozlabs.org "cd kernels/next/$i; git reset --hard" -done +printf 'Updating Linus'\'' tree\n' +ssh ozlabs.org 'cd kernels/linus.git; git remote update' -{ - cat <