Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # --- generate compile_commands.json which contains the information of header files ---
- # get package name from package.xml
- package_name=`grep -o "<name[^>]*>[^<]*</name>" package.xml | sed -e "s/<name>\(.*\)<\/name>/\1/"`
- package_dir=`catkin locate -b ${package_name}`
- # depends compiledb and compdb (sudo pip install compiledb compdb )
- (cd $package_dir && compiledb make)
- compdb -p $package_dir list > compile_commands.json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement