Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
vivainio committed Aug 3, 2018
1 parent 9de6ac6 commit fc2c97e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions publish.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
from __future__ import print_function

import os,shutil,glob
import os, shutil, glob

prjdir = "RoughGrep"
version = "2.3"
version = "2.4"


def c(s):
print(">",s)
print(">", s)
err = os.system(s)
assert not err


def nuke(pth):
if os.path.isdir(pth):
shutil.rmtree(pth)


def rm_globs(*globs):
for g in globs:
files = glob.glob(g)
for f in files:
print("Del",f)
print("Del", f)
os.remove(f)


nuke(prjdir + "/bin")
nuke(prjdir + "/obj")
nuke("deploy")
Expand All @@ -32,5 +37,3 @@ def rm_globs(*globs):
os.rename("Release", "RoughGrep")

c("7za a ../../deploy/RoughGrep-%s.zip RoughGrep" % version)


0 comments on commit fc2c97e

Please sign in to comment.