From ede30bddc00d93dac85894d25eae90395abb4072 Mon Sep 17 00:00:00 2001 From: Cameron Brown Date: Sat, 24 Feb 2024 21:31:44 -0500 Subject: [PATCH] Add aptitude as installed package, cmonly for building just one package at a time with catkin_make --- scripts/install.sh | 3 ++- scripts/setup.bash | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 94e07590c..f9db76c6b 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -244,7 +244,8 @@ mil_user_install_dependencies() { nmap \ fd-find \ ripgrep \ - fzf + fzf \ + aptitude } # Add line to user's bashrc which source the repo's setup files diff --git a/scripts/setup.bash b/scripts/setup.bash index 97d54f7da..f164bb84d 100755 --- a/scripts/setup.bash +++ b/scripts/setup.bash @@ -99,6 +99,15 @@ startxbox() { roslaunch navigator_launch shore.launch } +# catkin_make for one specific package only +RED='\033[0;31m' +cmonly() { + cd ~/catkin_ws || exit + catkin_make --only-pkg-with-deps $1 + cd - >/dev/null || exit + echo "${RED}!! Warning: Future calls to catkin_make will just build the '$1' package. To revert this, ensure you run 'cm' or 'cd ~/catkin_ws && catkin_make -DCATKIN_WHITELIST_PACKAGES=\"\"' when you want to recompile the entire repository." +} + alias xbox=startxbox # PYTHONPATH modifications