Permalink
Browse files

Script to tag and update the master server

(closes #11)
  • Loading branch information...
abh committed Jun 19, 2011
1 parent 3430801 commit af1d5e8f55874ae7a74b869d629c1f08602dd072
Showing with 17 additions and 0 deletions.
  1. +17 −0 bin/update_master
View
@@ -0,0 +1,17 @@
+#!/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
+

0 comments on commit af1d5e8

Please sign in to comment.