Created
May 13, 2015 03:34
-
-
Save k-okada/b37a76caf73fd158cb80 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File Edit Options Buffers Tools Sh-Script Help | |
#!/bin/bash | |
IFS=':' read -ra PREFIX_PATH <<< "$CMAKE_PREFIX_PATH" | |
for dir in "${PREFIX_PATH[@]}"; do | |
if [ -w ${dir} ]; then | |
echo "convert message file $dir" | |
find ${dir}/share/roseus/ros -name *.l -exec grep shadow {} \; -print -exec cp {} {}.bak \; -exec sed -i "s@^(shadow '\([^\ | |
]*\) \(.*\))@(intern \"\1\" \2)(shadow '\1 \2) ;;force fixed due to https://github.com/jsk-ros-pkg/jsk_roseus/issues/313 @" {} \; | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment