From 8abfa8c17d6f978f97363aab5b8589f2b25cf539 Mon Sep 17 00:00:00 2001
From: Valerio Mariani <mariva00@kb-mdmg1059-02.pz.unibas.ch>
Date: Thu, 28 Oct 2010 12:21:22 +0200
Subject: [PATCH] Modified create bundle script (linux) to use date

---
 deployment/linux/create_bundle.py | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/deployment/linux/create_bundle.py b/deployment/linux/create_bundle.py
index b5a6f281f..43e980f9d 100644
--- a/deployment/linux/create_bundle.py
+++ b/deployment/linux/create_bundle.py
@@ -3,6 +3,7 @@ import shutil
 import subprocess
 import string
 import sys
+import datetime
 
 
 # custom parameters
@@ -39,13 +40,10 @@ if uname_line[0].find('x86_64') !=-1:
 else: 
   libdir='lib'
   archstring='32bit'
-svninfo_output=subprocess.Popen('svn info', shell=True, cwd='../../',stdout=subprocess.PIPE).stdout
-svninfo_lines=svninfo_output.readlines()
-svninfo_split=string.split(svninfo_lines[4])
-revstring=svninfo_split[1]
-directory_name='openstructure-linux-'+archstring+'-'+additional_label+'-rev'+revstring
-print 'Stripping subversion information to avoid accidental commit'
-subprocess.call('rm -rf $(find . -name .svn)',shell=True,cwd='../../')
+date_pattern='%Y-%b-%d'
+build=str(datetime.datetime.now())
+stamp=datetime.datetime.strptime(build, date_pattern)
+directory_name='openstructure-linux-'+archstring+'-'+additional_label+stamp
 print 'Hardcoding package python binary path in openstructure executables'
 subprocess.call('mv scripts/ost.in scripts/ost.in.backup',shell=True,cwd='../../')
 subprocess.call('sed "s/@PYTHON_BINARY@/\$DNG_ROOT\/bin\/'+python_bin_in_bundle+'/g" scripts/ost.in.backup > scripts/ost.in.prepreprepre',shell=True,cwd='../../')
-- 
GitLab