scripts: Move all scripts into scripts directory

This commit is contained in:
Fatih Aşıcı
2010-04-11 10:40:04 +00:00
parent 19c1b0c528
commit bdbad8a1de
4 changed files with 0 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#! /usr/bin/python
# a script to preare PiSi source tarball from svn
# author: exa
#TODO: arguments for svn snapshot with rev number, or a tag to override default
import sys
import os
import shutil
def run(cmd):
print 'running', cmd
os.system(cmd)
sys.path.insert(0, '.')
import pisi
if not os.path.exists('svndist'):
os.makedirs('svndist')
ver = pisi.__version__
if os.path.exists('svndist/pisi-%s' % ver):
shutil.rmtree('svndist/pisi-%s' % ver)
print 'Exporting svn directory'
run('svn export http://svn.uludag.org.tr/uludag/trunk/pisi svndist/pisi-%s' % ver)
os.chdir('svndist')
run('tar cjvf pisi-%s.tar.bz2 pisi-%s' % (ver, ver))
print 'Have a look at svndist directory'