|
1 | 1 | #!/bin/bash |
2 | | -# Copyright (c) 2021 by Apex.AI Inc. All rights reserved. |
| 2 | +# Copyright (c) 2021 - 2023 by Apex.AI Inc. All rights reserved. |
3 | 3 | # |
4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | # you may not use this file except in compliance with the License. |
@@ -29,18 +29,18 @@ cd "${WORKSPACE}" |
29 | 29 | msg "installing dependencies" |
30 | 30 | # NOTE: github action ros-tooling/[email protected] should be run before |
31 | 31 | sudo apt install -y apt-transport-https |
32 | | -sudo apt update && sudo apt install -y cmake libacl1-dev libncurses5-dev pkg-config ros-foxy-ros-testing |
| 32 | +sudo apt update && sudo apt install -y cmake libacl1-dev libncurses5-dev pkg-config ros-humble-ros-testing |
33 | 33 |
|
34 | 34 | msg "sourcing ROS workspace" |
35 | 35 | # shellcheck source=/dev/null |
36 | | -source /opt/ros/foxy/setup.bash |
| 36 | +source /opt/ros/humble/setup.bash |
37 | 37 |
|
38 | 38 | msg "checking copyrights" |
39 | | -sudo rm -rf /opt/ros/foxy/lib/python3.8/site-packages/ament_copyright/template/apache2_header.txt |
40 | | -sudo cp -rf tools/apache2_header.txt /opt/ros/foxy/lib/python3.8/site-packages/ament_copyright/template/. |
| 39 | +sudo rm -rf /opt/ros/humble/lib/python3.10/site-packages/ament_copyright/template/apache2_header.txt |
| 40 | +sudo cp -rf tools/apache2_header.txt /opt/ros/humble/lib/python3.10/site-packages/ament_copyright/template/. |
41 | 41 | # shellcheck disable=SC2026 |
42 | | -sudo sed -i '41 c\"'c'", "'cc'", "'cpp'", "'cxx'", "'h'", "'hh'", "'hpp'", "'hxx'", "'inl'", "'sh'"' /opt/ros/foxy/lib/python3.8/site-packages/ament_copyright/main.py |
43 | | -ament_copyright --exclude LICENSE CONTRIBUTING.md tools/apache2_header.txt |
| 42 | +sudo sed -i '41 c\"'c'", "'cc'", "'cpp'", "'cxx'", "'h'", "'hh'", "'hpp'", "'hxx'", "'inl'", "'sh'"' /opt/ros/humble/lib/python3.10/site-packages/ament_copyright/main.py |
| 43 | +ament_copyright ./**/* tools/apache2_header.txt |
44 | 44 |
|
45 | 45 | msg "compiler versions: |
46 | 46 | $(gcc --version) |
|
0 commit comments