1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-14 00:06:15 +01:00

- removed outdated script (the same can be achieved with "git archive --prefix osc-$VER/ --format tar master | bzip2 > osc-$VER.tar.bz2)

This commit is contained in:
Marcus Huewe 2010-03-21 22:43:01 +01:00
parent 9bb2ed4aba
commit 6fef701fda

View File

@ -1,29 +0,0 @@
#!/usr/bin/python
# tar up svn snapshot. run with -r to produce a release
import subprocess
import os
import sys
from osc import core
release = False
v = core.__version__
if (len(sys.argv) > 1 and sys.argv[1] == '-r'):
release = True
if release:
if (v.endswith('_SVN')):
v=v[:-4]
print "don't forget to increase version in osc/core.py after release"
else:
v += subprocess.Popen(["svnversion", "."], stdout=subprocess.PIPE).stdout.read().strip()
d = "osc-" + v
f = d+".tar.bz2"
subprocess.check_call(["svn", "export", ".", d])
if release:
# TODO: create tag for release
subprocess.check_call(["sed", "-ie", "/^__version__/s/_SVN//", d+"/osc/core.py"])
subprocess.check_call(["tar", "--force-local", "--owner=root", "--group=root", "-cjf", f, d])
subprocess.call(["rm", "-rf", d]) # XXX how to do this in python properly?
print f