Skip to content

xds: bazel proto gen code generation scripts#2775

Merged
lyuxuan merged 8 commits intogrpc:masterfrom
lyuxuan:xdscodegen
Jun 27, 2019
Merged

xds: bazel proto gen code generation scripts#2775
lyuxuan merged 8 commits intogrpc:masterfrom
lyuxuan:xdscodegen

Conversation

@lyuxuan
Copy link
Copy Markdown
Contributor

@lyuxuan lyuxuan commented Apr 15, 2019

No description provided.

@dfawley dfawley assigned lyuxuan and unassigned dfawley Apr 23, 2019
@lyuxuan lyuxuan force-pushed the xdscodegen branch 2 times, most recently from 6830e36 to bfc8df0 Compare May 23, 2019 12:16
@lyuxuan lyuxuan assigned dfawley and unassigned lyuxuan May 29, 2019
Copy link
Copy Markdown
Member

@dfawley dfawley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just a few bash quoting things.

bazel build "$i"
done

cwd=$(pwd)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would need quotes, but you can use $PWD directly and delete this line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

done

cwd=$(pwd)
dest=$cwd/../../proto/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs quotes in case the current directory has spaces.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

eval "$src" |
while IFS= read -r -d '' origin
do
target=${origin##*proto/}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if quotes are needed here, but can't hurt

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

while IFS= read -r -d '' origin
do
target=${origin##*proto/}
final=$dest$target
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one needs quotes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@dfawley dfawley assigned lyuxuan and unassigned dfawley Jun 21, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants