Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
2bd7f516
Commit
2bd7f516
authored
Apr 25, 2018
by
Corentin Le Molgat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix duplicate mkdir in update_file_lists.sh
- merge loop for .h and .proto includes - fix shellcheck errors
parent
3ad8efc7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
21 deletions
+7
-21
extract_includes.bat.in
cmake/extract_includes.bat.in
+0
-3
update_file_lists.sh
update_file_lists.sh
+7
-18
No files found.
cmake/extract_includes.bat.in
View file @
2bd7f516
...
...
@@ -111,9 +111,6 @@ copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\wire_format.h" includ
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\wire_format_lite.h" include\google\protobuf\wire_format_lite.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\wire_format_lite_inl.h" include\google\protobuf\wire_format_lite_inl.h
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\wrappers.pb.h" include\google\protobuf\wrappers.pb.h
mkdir include\google
mkdir include\google\protobuf
mkdir include\google\protobuf\compiler
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\any.proto" include\google\protobuf\any.proto
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\api.proto" include\google\protobuf\api.proto
copy "${PROTOBUF_SOURCE_WIN32_PATH}\..\src\google\protobuf\compiler\plugin.proto" include\google\protobuf\compiler\plugin.proto
...
...
update_file_lists.sh
View file @
2bd7f516
...
...
@@ -128,26 +128,15 @@ set_cmake_value $CMAKE_DIR/tests.cmake lite_arena_test_files $CMAKE_PREFIX $LITE
# Generate extract_includes.bat
echo
"mkdir include"
>
$EXTRACT_INCLUDES_BAT
for
HEADER
in
$PUBLIC_HEADERS
;
do
HEADER_DIR
=
$(
dirname
$HEADER
)
while
[
!
"
$HEADER_DIR
"
=
"."
]
;
do
echo
$HEADER_DIR
|
sed
"s/
\\
//
\\\\
/g"
HEADER_DIR
=
$(
dirname
$HEADER_DIR
)
done
done
|
sort
|
uniq
|
sed
"s/^/mkdir include
\\\\
/"
>>
$EXTRACT_INCLUDES_BAT
for
HEADER
in
$PUBLIC_HEADERS
;
do
WINPATH
=
$(
echo
$HEADER
|
sed
's;/;\\;g'
)
echo
"copy
\"\$
{PROTOBUF_SOURCE_WIN32_PATH}
\\
..
\\
src
\\
$WINPATH
\"
include
\\
$WINPATH
"
>>
$EXTRACT_INCLUDES_BAT
done
for
PROTO
in
${
WKT_PROTOS
}
;
do
PROTO_DIR
=
$(
dirname
"
$PROTO
"
)
while
[
!
"
$PROTO_DIR
"
=
"."
]
;
do
echo
"mkdir include
\\
${
PROTO_DIR
//\//\\
}
"
PROTO_DIR
=
$(
dirname
"
$PROTO_DIR
"
)
for
INCLUDE
in
$PUBLIC_HEADERS
$WKT_PROTOS
;
do
INCLUDE_DIR
=
$(
dirname
"
$INCLUDE
"
)
while
[
!
"
$INCLUDE_DIR
"
=
"."
]
;
do
echo
"mkdir include
\\
${
INCLUDE_DIR
//\//\\
}
"
INCLUDE_DIR
=
$(
dirname
"
$INCLUDE_DIR
"
)
done
done
|
sort
|
uniq
>>
$EXTRACT_INCLUDES_BAT
for
PROTO
in
$WKT_PROTOS
;
do
WINPATH
=
${
PROTO
//\//\\
}
for
INCLUDE
in
$PUBLIC_HEADERS
$WKT_PROTOS
;
do
WINPATH
=
${
INCLUDE
//\//\\
}
echo
"copy
\"\$
{PROTOBUF_SOURCE_WIN32_PATH}
\\
..
\\
src
\\
$WINPATH
\"
include
\\
$WINPATH
"
>>
$EXTRACT_INCLUDES_BAT
done
...
...
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