Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
8abfa8c1
Commit
8abfa8c1
authored
14 years ago
by
Valerio Mariani
Browse files
Options
Downloads
Patches
Plain Diff
Modified create bundle script (linux) to use date
parent
269e5b28
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deployment/linux/create_bundle.py
+5
-7
5 additions, 7 deletions
deployment/linux/create_bundle.py
with
5 additions
and
7 deletions
deployment/linux/create_bundle.py
+
5
−
7
View file @
8abfa8c1
...
...
@@ -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
=
'
../../
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment