Commit da137f1f authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Corrected license headers for genproto.sh scripts

parent 9b4cc17b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
#!/bin/bash -eu
#
# Copyright 2018 Google LLC
# Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -14,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash -e

# Make folder containing the script the root folder for its execution
cd $(dirname $0)

+1 −3
Original line number Diff line number Diff line
#!/bin/bash -eu
#
# Copyright 2018 Google LLC
# Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -14,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash -e

# Make folder containing the script the root folder for its execution
cd $(dirname $0)

+1 −3
Original line number Diff line number Diff line
#!/bin/bash -eu
#
# Copyright 2018 Google LLC
# Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -14,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash -e

# Make folder containing the script the root folder for its execution
cd $(dirname $0)

+1 −3
Original line number Diff line number Diff line
#!/bin/bash -eu
#
# Copyright 2018 Google LLC
# Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -14,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash -e

# Make folder containing the script the root folder for its execution
cd $(dirname $0)

+8 −8
Original line number Diff line number Diff line
#!/bin/bash -eu
#
# Copyright 2018 Google LLC
# Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -14,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash -e

# Make folder containing the script the root folder for its execution
cd $(dirname $0)

@@ -24,14 +22,16 @@ rm -rf proto/__pycache__
touch proto/__init__.py

python -m grpc_tools.protoc -I../../proto --python_out=proto --grpc_python_out=proto context.proto
python -m grpc_tools.protoc -I../../proto --python_out=proto --grpc_python_out=proto service.proto
python -m grpc_tools.protoc -I../../proto --python_out=proto --grpc_python_out=proto kpi_sample_types.proto
python -m grpc_tools.protoc -I../../proto --python_out=proto --grpc_python_out=proto interdomain.proto
python -m grpc_tools.protoc -I../../proto --python_out=proto --grpc_python_out=proto slice.proto

rm proto/context_pb2_grpc.py
rm proto/interdomain_pb2_grpc.py
rm proto/kpi_sample_types_pb2_grpc.py
rm proto/slice_pb2_grpc.py

sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/context_pb2.py
sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/service_pb2.py
sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/service_pb2_grpc.py
sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/kpi_sample_types_pb2.py
sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/interdomain_pb2.py
sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/interdomain_pb2_grpc.py
sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' proto/slice_pb2.py
Loading