Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Release script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Turner committed Jun 5, 2013
1 parent 16054e1 commit 675041d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python
import readline
import os
import hashlib
import sys

assert len(sys.argv) == 3, "need CHANGESET VERSION"
cset = sys.argv[1]
version = sys.argv[2]

os.system("mkdir -p downloads")
os.chdir("downloads")
os.system("git clone ../ nitro-" + version)
os.chdir("nitro-" + version)
os.system("git checkout " + cset)
os.chdir("..")
os.system("tar cf nitro-%s.tar nitro-%s" % (version, version))
os.system("gzip nitro-%s.tar" % version)
hash = hashlib.sha1(open("nitro-%s.tar.gz" % version).read())
open("nitro-%s.tar.gz.sha1" % version, 'wb').write(hash.hexdigest())

0 comments on commit 675041d

Please sign in to comment.