Commit 5f6a0a0f authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

1. fixed fpga project cloned before linux-xlnx - changed order + ordered...

1. fixed fpga project cloned before linux-xlnx - changed order + ordered dictionary 2. fixed copying Eclipse project files
parent 1b46274c
...@@ -27,6 +27,11 @@ ...@@ -27,6 +27,11 @@
"git://git.yoctoproject.org/poky.git", "git://git.yoctoproject.org/poky.git",
"master","3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c" "master","3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c"
], ],
"linux-elphel" :[
"https://github.com/Elphel/linux-elphel.git",
"master","",
"#master","cc50d7fa07140e680b09a8add617e62b4ba35aa0"
],
"fpga-elphel" : { "fpga-elphel" : {
"x393" :[ "x393" :[
"https://github.com/Elphel/x393.git", "https://github.com/Elphel/x393.git",
...@@ -42,11 +47,6 @@ ...@@ -42,11 +47,6 @@
"master","" "master",""
] ]
}, },
"linux-elphel" :[
"https://github.com/Elphel/linux-elphel.git",
"master","",
"#master","cc50d7fa07140e680b09a8add617e62b4ba35aa0"
],
"rootfs-elphel": { "rootfs-elphel": {
"elphel-apps-imgsrv":[ "elphel-apps-imgsrv":[
"https://github.com/Elphel/elphel-apps-imgsrv.git", "https://github.com/Elphel/elphel-apps-imgsrv.git",
......
...@@ -15,10 +15,11 @@ import os ...@@ -15,10 +15,11 @@ import os
import sys import sys
import json import json
from collections import OrderedDict
with open('projects.json') as data_file: with open('projects.json') as data_file:
Projects = json.load(data_file) Projects = json.load(data_file, object_pairs_hook=OrderedDict)
#http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python #http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
class bcolors: class bcolors:
HEADER = '\033[95m' HEADER = '\033[95m'
...@@ -70,9 +71,13 @@ def copy_eclipse_settings(name): ...@@ -70,9 +71,13 @@ def copy_eclipse_settings(name):
if (not os.path.isfile(name+"/.project")) and (os.path.isdir(name+"/"+EPS)): if (not os.path.isfile(name+"/.project")) and (os.path.isdir(name+"/"+EPS)):
print(" Copying up files for Eclipse project") print(" Copying up files for Eclipse project")
print(bcolors.WARNING+" Copying "+name+"/"+EPS+" to "+name+"/"+bcolors.ENDC) print(bcolors.WARNING+" Copying "+name+"/"+EPS+" to "+name+"/"+bcolors.ENDC)
shout("rsync -v -a "+name+"/"+EPS+" "+name+"/") shout("rsync -av "+name+"/"+EPS+"/ "+name+"/")
else:
print("Not copying up files for Eclipse project: .project is already there") 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")
def read_local_conf(conf_file,pattern): def read_local_conf(conf_file,pattern):
ret = [] ret = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment