Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hdlmake
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
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
Projects
Hdlmake
Commits
b75a7587
Commit
b75a7587
authored
14 years ago
by
Pawel Szostek
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
732822f2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synthesis/hdlmake.py
+3
-6
3 additions, 6 deletions
synthesis/hdlmake.py
with
3 additions
and
6 deletions
synthesis/hdlmake.py
+
3
−
6
View file @
b75a7587
...
@@ -187,10 +187,7 @@ def transfer_files_forth(files):
...
@@ -187,10 +187,7 @@ def transfer_files_forth(files):
if
not
isinstance
(
files
,
list
):
if
not
isinstance
(
files
,
list
):
return
None
;
return
None
;
global
synth_server
ssh_cmd
=
"
ssh
"
+
global_mod
.
synth_user
+
"
@
"
+
global_mod
.
synth_server
global
synth_user
global
ssh
ssh_cmd
=
"
ssh
"
+
synth_user
+
"
@
"
+
synth_server
randstring
=
''
.
join
(
random
.
choice
(
string
.
ascii_letters
+
string
.
digits
)
for
x
in
range
(
8
))
randstring
=
''
.
join
(
random
.
choice
(
string
.
ascii_letters
+
string
.
digits
)
for
x
in
range
(
8
))
#create a randstring for a new catalogue on remote machine
#create a randstring for a new catalogue on remote machine
...
@@ -202,9 +199,9 @@ def transfer_files_forth(files):
...
@@ -202,9 +199,9 @@ def transfer_files_forth(files):
ssh
.
system
(
mkdir_cmd
)
ssh
.
system
(
mkdir_cmd
)
#create a string with filenames
#create a string with filenames
l
c
l_files_str
=
''
.
join
(
os
.
path
.
abspath
(
x
)
+
'
'
for
x
in
files
)
l
oca
l_files_str
=
''
.
join
(
os
.
path
.
abspath
(
x
)
+
'
'
for
x
in
files
)
cp_cmd
=
"
tar -cvjf -
"
+
l
c
l_files_str
+
"
|
"
+
ssh_cmd
+
'
"
(cd
'
+
randstring
+
'
; tar xjf -)
"'
cp_cmd
=
"
tar -cvjf -
"
+
l
oca
l_files_str
+
"
|
"
+
ssh_cmd
+
'
"
(cd
'
+
randstring
+
'
; tar xjf -)
"'
v_msg
(
"
Coping files to remote server:
"
+
cp_cmd
)
v_msg
(
"
Coping files to remote server:
"
+
cp_cmd
)
os
.
system
(
cp_cmd
)
os
.
system
(
cp_cmd
)
return
randstring
return
randstring
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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