/bin/update_master
http://github.com/perlorg/cpanorg · Shell · 17 lines · 10 code · 5 blank · 2 comment · 2 complexity · b5c2924634a493f2590d289155733331 MD5 · raw file
- #!/bin/sh
- #cd ~/cpan/content
- current=`git rev-list -n 1 HEAD`
- git pull --rebase
- new=`git rev-list -n 1 HEAD`
- if [ "$current" != "$new" ]; then
- echo "Tagging"
- now=`TZ=UTC date +'%Y%m%d-%H%M'`
- git tag -s $now -m "Release to master mirror"
- git push origin tag $now
- fi
- make update-master