Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
e5af172e
Commit
e5af172e
authored
9 years ago
by
David Garcia Quintas
Browse files
Options
Downloads
Patches
Plain Diff
Updated scripts to use docker for clang-formatting
parent
5220a759
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/codegen/core/gen_load_balancing_proto.sh
+2
-10
2 additions, 10 deletions
tools/codegen/core/gen_load_balancing_proto.sh
tools/distrib/check_nanopb_output.sh
+3
-0
3 additions, 0 deletions
tools/distrib/check_nanopb_output.sh
with
5 additions
and
10 deletions
tools/codegen/core/gen_load_balancing_proto.sh
+
2
−
10
View file @
e5af172e
...
@@ -124,15 +124,7 @@ mv $TMPFILE "$OUTPUT_DIR/$PROTO_BASENAME.pb.c"
...
@@ -124,15 +124,7 @@ mv $TMPFILE "$OUTPUT_DIR/$PROTO_BASENAME.pb.c"
cat
$COPYRIGHT_FILE
"
$OUTPUT_DIR
/
$PROTO_BASENAME
.pb.h"
>
$TMPFILE
cat
$COPYRIGHT_FILE
"
$OUTPUT_DIR
/
$PROTO_BASENAME
.pb.h"
>
$TMPFILE
mv
$TMPFILE
"
$OUTPUT_DIR
/
$PROTO_BASENAME
.pb.h"
mv
$TMPFILE
"
$OUTPUT_DIR
/
$PROTO_BASENAME
.pb.h"
docker run
--rm
=
true
\
docker run
-v
$OUTPUT_DIR
:/local
-t
grpc_clang_format
\
-v
${
HOST_GIT_ROOT
:-
`
pwd
`
}
:/local-code
\
bash
-c
'clang-format-3.6 -style="{BasedOnStyle: Google, Language: Cpp}" -i /local/load_balancer.pb.*'
-t
grpc_clang_format
\
clang-format-3.6
\
-style
=
"{BasedOnStyle: Google, Language: Cpp}"
\
-i
"/local-code/src/core/proto/grpc/lb/v0/
$PROTO_BASENAME
.pb.c"
&&
\
clang-format-3.6
\
-style
=
"{BasedOnStyle: Google, Language: Cpp}"
\
-i
"/local-code/src/core/proto/grpc/lb/v0/
$PROTO_BASENAME
.pb.h"
popd
>
/dev/null
popd
>
/dev/null
This diff is collapsed.
Click to expand it.
tools/distrib/check_nanopb_output.sh
+
3
−
0
View file @
e5af172e
...
@@ -45,6 +45,9 @@ pip install protobuf==3.0.0b2
...
@@ -45,6 +45,9 @@ pip install protobuf==3.0.0b2
# change to root directory
# change to root directory
cd
$(
dirname
$0
)
/../..
cd
$(
dirname
$0
)
/../..
# build clang-format docker image
docker build
-t
grpc_clang_format tools/dockerfile/grpc_clang_format
# install protoc version 3
# install protoc version 3
pushd
third_party/protobuf
pushd
third_party/protobuf
apt-get
install
-y
autoconf automake libtool curl
apt-get
install
-y
autoconf automake libtool curl
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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