Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added release script.

  • Loading branch information...
commit 8d4eba5891914e4bbef9fa72d87aa1630661f261 1 parent f81c513
@elistevens authored
Showing with 26 additions and 0 deletions.
  1. +26 −0 release.sh
View
26 release.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+VER=$1
+UPLOAD=$2
+
+if [ "$VER" == "" ]
+then
+ echo "Must specify a version number."
+ exit
+fi
+
+if git diff --quiet HEAD
+then
+
+ git tag $VER \
+ && sed -i '' -e "s/version='.*'/version='$VER'/" setup.py \
+ && python setup.py nosetests \
+ && python setup.py bdist_egg $UPLOAD \
+ && git commit -am "v$VER" \
+ && git push github \
+ && git push --tags github
+
+else
+ echo Uncommitted changes.
+ git status
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.