/bin/update_master
Shell | 17 lines | 10 code | 5 blank | 2 comment | 2 complexity | b5c2924634a493f2590d289155733331 MD5 | raw file
1#!/bin/sh 2 3#cd ~/cpan/content 4 5current=`git rev-list -n 1 HEAD` 6git pull --rebase 7new=`git rev-list -n 1 HEAD` 8 9if [ "$current" != "$new" ]; then 10 echo "Tagging" 11 now=`TZ=UTC date +'%Y%m%d-%H%M'` 12 git tag -s $now -m "Release to master mirror" 13 git push origin tag $now 14fi 15 16make update-master 17