Skip to content

Instantly share code, notes, and snippets.

@k-okada
Created May 13, 2015 03:34
Show Gist options
  • Save k-okada/b37a76caf73fd158cb80 to your computer and use it in GitHub Desktop.
Save k-okada/b37a76caf73fd158cb80 to your computer and use it in GitHub Desktop.
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