/bin/update_master

http://github.com/perlorg/cpanorg · Shell · 17 lines · 10 code · 5 blank · 2 comment · 2 complexity · b5c2924634a493f2590d289155733331 MD5 · raw file

  1. #!/bin/sh
  2. #cd ~/cpan/content
  3. current=`git rev-list -n 1 HEAD`
  4. git pull --rebase
  5. new=`git rev-list -n 1 HEAD`
  6. if [ "$current" != "$new" ]; then
  7. echo "Tagging"
  8. now=`TZ=UTC date +'%Y%m%d-%H%M'`
  9. git tag -s $now -m "Release to master mirror"
  10. git push origin tag $now
  11. fi
  12. make update-master