Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kernel-bitbake-parser
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kernel-bitbake-parser
Commits
5b8e385e
Commit
5b8e385e
authored
Apr 22, 2015
by
YuriNenakhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixes
parent
0aad7226
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
kbparse.py
kbparse.py
+4
-3
No files found.
kbparse.py
View file @
5b8e385e
...
...
@@ -123,6 +123,7 @@ print(xml_defs)
print
(
" ╔════════════════════╗
\n
║ source paths ║
\n
╚════════════════════╝"
)
xml_src
=
"<entry excluding=
\"
"
all_paths
.
append
(
proj_dir
+
src_dir
+
"/scripts/"
)
all_paths
.
sort
()
for
i
in
range
(
len
(
all_paths
)):
try
:
...
...
@@ -142,14 +143,14 @@ for i in extraincs:
print
(
re
.
sub
(
leading_project_name
,
""
,
abs2wrklink
(
i
)))
proj_data
=
""
with
open
(
".cproject"
,
"r"
)
as
old_proj_file
:
with
open
(
".
."
+
proj_dir
+
"/.
cproject"
,
"r"
)
as
old_proj_file
:
proj_data_tmp
=
old_proj_file
.
readlines
()
for
i
in
proj_data_tmp
:
proj_data
=
proj_data
+
i
with
open
(
".cproject_BAK"
,
"w"
)
as
new_proj_file
:
with
open
(
".
."
+
proj_dir
+
"/.
cproject_BAK"
,
"w"
)
as
new_proj_file
:
new_proj_file
.
write
(
proj_data
)
proj_data
=
re
.
sub
(
is_include_xml
,
"
\
g<ib>
\n
"
+
xml_includes
+
"
\n
\
g<ie>"
,
proj_data
)
proj_data
=
re
.
sub
(
is_define_xml
,
"
\
g<db>
\n
"
+
xml_defs
+
"
\n
\
g<de>"
,
proj_data
)
proj_data
=
re
.
sub
(
is_src_xml
,
"
\
g<sb>
\n
"
+
xml_src
+
"
\n
\
g<se>"
,
proj_data
)
with
open
(
".cproject"
,
"w"
)
as
new_proj_file
:
with
open
(
".
."
+
proj_dir
+
"/.
cproject"
,
"w"
)
as
new_proj_file
:
new_proj_file
.
write
(
proj_data
)
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