Skip to content

Commit

Permalink
suppor debbuild for ROS_DISTRO
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Nov 23, 2020
1 parent e35a589 commit 43688ff
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
7 changes: 6 additions & 1 deletion ethercat_manager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ endif()
# debbuild
# catkin build minas_control --make-args debbuild
# ROS_PARALLEL_JOBS='' catkin_make --pkg minas_control -- debbuild
find_program(LSB_RELEASE_EXEC lsb_release)
execute_process(COMMAND ${LSB_RELEASE_EXEC} -cs
OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
add_custom_target(debbuild_${PROJECT_NAME}
COMMAND bloom-generate rosdebian --os-name ubuntu --os-version trusty --ros-distro indigo
COMMAND bloom-generate rosdebian --os-name ubuntu --os-version ${LSB_RELEASE_ID_SHORT} --ros-distro $ENV{ROS_DISTRO}
COMMAND MAKEFLAGS= fakeroot debian/rules binary
COMMAND rm -fr debian obj-x86_64-linux-gnu
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
Expand Down
7 changes: 6 additions & 1 deletion minas_control/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,14 @@ endif()
# debbuild
# catkin build minas_control --make-args debbuild
# ROS_PARALLEL_JOBS='' catkin_make --pkg minas_control -- debbuild
find_program(LSB_RELEASE_EXEC lsb_release)
execute_process(COMMAND ${LSB_RELEASE_EXEC} -cs
OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
add_custom_target(debbuild_${PROJECT_NAME}
COMMAND sudo -n true || (>&2 echo "debbuild need sudo access to make debs" && exit 1)
COMMAND bloom-generate rosdebian --os-name ubuntu --os-version trusty --ros-distro indigo
COMMAND bloom-generate rosdebian --os-name ubuntu --os-version ${LSB_RELEASE_ID_SHORT} --ros-distro $ENV{ROS_DISTRO}
COMMAND MAKEFLAGS= fakeroot debian/rules binary
COMMAND find debian obj-x86_64-linux-gnu -type f -not -name postinst -print0 | xargs -0 rm --
COMMAND find debian obj-x86_64-linux-gnu -type d -empty -delete
Expand Down
7 changes: 6 additions & 1 deletion tra1_bringup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ endif()
# debbuild
# catkin build minas_control --make-args debbuild
# ROS_PARALLEL_JOBS='' catkin_make --pkg minas_control -- debbuild
find_program(LSB_RELEASE_EXEC lsb_release)
execute_process(COMMAND ${LSB_RELEASE_EXEC} -cs
OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
add_custom_target(debbuild_${PROJECT_NAME}
COMMAND sudo -n true || (>&2 echo "debbuild need sudo access to make debs" && exit 1)
COMMAND bloom-generate rosdebian --os-name ubuntu --os-version trusty --ros-distro indigo
COMMAND bloom-generate rosdebian --os-name ubuntu --os-version ${LSB_RELEASE_ID_SHORT} --ros-distro $ENV{ROS_DISTRO}
COMMAND MAKEFLAGS= fakeroot debian/rules binary
COMMAND rm -fr debian obj-x86_64-linux-gnu
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
Expand Down
7 changes: 6 additions & 1 deletion tra1_description/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ endif()
# debbuild
# catkin build minas_control --make-args debbuild
# ROS_PARALLEL_JOBS='' catkin_make --pkg minas_control -- debbuild
find_program(LSB_RELEASE_EXEC lsb_release)
execute_process(COMMAND ${LSB_RELEASE_EXEC} -cs
OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
add_custom_target(debbuild_${PROJECT_NAME}
COMMAND sudo -n true || (>&2 echo "debbuild need sudo access to make debs" && exit 1)
COMMAND bloom-generate rosdebian --os-name ubuntu --os-version trusty --ros-distro indigo
COMMAND bloom-generate rosdebian --os-name ubuntu --os-version ${LSB_RELEASE_ID_SHORT} --ros-distro $ENV{ROS_DISTRO}
COMMAND MAKEFLAGS= fakeroot debian/rules binary
COMMAND rm -fr debian obj-x86_64-linux-gnu
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
Expand Down
7 changes: 6 additions & 1 deletion tra1_moveit_config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ endif()
# debbuild
# catkin build minas_control --make-args debbuild
# ROS_PARALLEL_JOBS='' catkin_make --pkg minas_control -- debbuild
find_program(LSB_RELEASE_EXEC lsb_release)
execute_process(COMMAND ${LSB_RELEASE_EXEC} -cs
OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
add_custom_target(debbuild_${PROJECT_NAME}
COMMAND sudo -n true || (>&2 echo "debbuild need sudo access to make debs" && exit 1)
COMMAND bloom-generate rosdebian --os-name ubuntu --os-version trusty --ros-distro indigo
COMMAND bloom-generate rosdebian --os-name ubuntu --os-version ${LSB_RELEASE_ID_SHORT} --ros-distro $ENV{ROS_DISTRO}
COMMAND MAKEFLAGS= fakeroot debian/rules binary
COMMAND rm -fr debian obj-x86_64-linux-gnu
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
Expand Down

0 comments on commit 43688ff

Please sign in to comment.