Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel393
Commits
d1b34b62
Commit
d1b34b62
authored
Nov 21, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.elphel.com:Elphel/elphel393
parents
e32fcf20
4a6dc45d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
setup.py
setup.py
+12
-7
No files found.
setup.py
View file @
d1b34b62
...
...
@@ -75,22 +75,27 @@ def cloneandcheckout(name,item):
shout
(
"git pull"
)
os
.
chdir
(
cwd
)
def
copy_eclipse_settings
(
name
):
def
copy_eclipse_settings
(
name
,
return_path
):
EPS
=
"eclipse_project_setup"
if
(
not
os
.
path
.
isfile
(
name
+
"/.project"
))
and
(
os
.
path
.
isdir
(
name
+
"/"
+
EPS
)):
print
(
" Copying up files for Eclipse project"
)
print
(
bcolors
.
WARNING
+
" Copying "
+
name
+
"/"
+
EPS
+
" to "
+
name
+
"/"
+
bcolors
.
ENDC
)
shout
(
"rsync -av "
+
name
+
"/"
+
EPS
+
"/ "
+
name
+
"/"
)
# it does not have to be an Eclipse project
if
(
not
os
.
path
.
islink
(
name
+
"/scripts"
)):
# sub all character line into '..', keep '/'
#regex = re.compile(r"[^/]+")
#return_path = regex.sub("..",name)
shout
(
"ln -sf "
+
return_path
+
"/scripts "
+
name
+
"/scripts"
)
print
(
"Linked scripts/ to project"
)
if
not
os
.
path
.
isdir
(
name
+
"/"
+
EPS
):
print
(
"Not copying up files for Eclipse project: not an Eclipse project"
)
elif
os
.
path
.
isfile
(
name
+
"/.project"
):
print
(
"Not copying up files for Eclipse project: .project is already there"
)
if
(
not
os
.
path
.
islink
(
name
+
"/scripts"
)):
shout
(
"ln -sf ../../scripts/ "
+
name
+
"/scripts"
)
print
(
"Linked scripts to project"
)
def
read_local_conf
(
conf_file
,
pattern
):
ret
=
[]
...
...
@@ -203,7 +208,7 @@ for p,v in Projects.items():
for
k
,
l
in
v
.
items
():
print
(
"
\n
"
+
bcolors
.
BOLDWHITE
+
"*"
+
bcolors
.
ENDC
+
" "
+
k
)
cloneandcheckout
(
k
,
update_branch
(
project_branches
,
k
,
l
,
git_proto
))
copy_eclipse_settings
(
k
)
copy_eclipse_settings
(
k
,
"../.."
)
#special case for x393 fpga project
if
k
==
"x393"
:
...
...
@@ -219,7 +224,7 @@ for p,v in Projects.items():
elif
isinstance
(
v
,
list
):
cloneandcheckout
(
p
,
update_branch
(
project_branches
,
p
,
v
,
git_proto
))
copy_eclipse_settings
(
p
)
copy_eclipse_settings
(
p
,
".."
)
else
:
print
(
"Error?"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment