Skip to content
Snippets Groups Projects
Commit c1c69ed9 authored by valerio's avatar valerio
Browse files

More updates to create_bundle

Removes dokk and harmony from their new locations. Does not remove svn information anymore

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2523 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 80c29957
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ svninfo_split=string.split(svninfo_lines[4]) ...@@ -45,7 +45,7 @@ svninfo_split=string.split(svninfo_lines[4])
revstring=svninfo_split[1] revstring=svninfo_split[1]
directory_name='openstructure-linux-'+archstring+'-'+additional_label+'-rev'+revstring directory_name='openstructure-linux-'+archstring+'-'+additional_label+'-rev'+revstring
print 'Stripping subversion information to avoid accidental commit' print 'Stripping subversion information to avoid accidental commit'
subprocess.call('rm -rf $(find . -name .svn)',shell=True,cwd='../../') #subprocess.call('rm -rf $(find . -name .svn)',shell=True,cwd='../../')
print 'Hardcoding package python binary path in openstructure executables' print 'Hardcoding package python binary path in openstructure executables'
subprocess.call('mv scripts/ost.in scripts/ost.in.backup',shell=True,cwd='../../') 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='../../') 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='../../')
...@@ -142,8 +142,9 @@ print 'Removing headers from package directory structure' ...@@ -142,8 +142,9 @@ print 'Removing headers from package directory structure'
subprocess.call('rm -fr '+directory_name+'/include',shell=True,cwd='../../') subprocess.call('rm -fr '+directory_name+'/include',shell=True,cwd='../../')
print 'Stripping pyc files from bundle' print 'Stripping pyc files from bundle'
subprocess.call('rm -rf $(find . -name *.pyc)',shell=True,cwd='../../') subprocess.call('rm -rf $(find . -name *.pyc)',shell=True,cwd='../../')
print 'removing dokk from bundle' print 'removing dokk and harmony examples from bundle'
subprocess.call('rm -rf '+directory_name+'/share/openstructure/examples/dokk',shell=True,cwd='../../') subprocess.call('rm -rf '+directory_name+'/share/openstructure/examples/code_fragments/dokk',shell=True,cwd='../../')
subprocess.call('rm -rf '+directory_name+'/share/openstructure/examples/code_fragments/harmony',shell=True,cwd='../../')
print 'De-hardcoding package python binary path from openstructure executables' print 'De-hardcoding package python binary path from openstructure executables'
subprocess.call('rm scripts/ost.in',shell=True,cwd='../../') subprocess.call('rm scripts/ost.in',shell=True,cwd='../../')
subprocess.call('rm scripts/ost.in.pre*',shell=True,cwd='../../') subprocess.call('rm scripts/ost.in.pre*',shell=True,cwd='../../')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment