Skip to content

Commit

Permalink
Merge pull request #1138 from uf-mil/cmonly-aptitude
Browse files Browse the repository at this point in the history
Add aptitude as installed package, cmonly for building just one package with catkin_make
  • Loading branch information
cbrxyz authored Feb 27, 2024
2 parents 4474cf7 + ede30bd commit c824a61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions scripts/setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c824a61

Please sign in to comment.