Initial Commit.
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
PYTHON_PATH=/opt/ros/indigo/lib/python2.7/dist-packages
|
||||
|
||||
# delete old files
|
||||
rm -rf devel devel_isolated build build_isolated install install_isolated
|
||||
|
||||
# Let cmake create an eclipse project
|
||||
catkin_make_isolated --force-cmake --cmake-args -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug
|
||||
|
||||
cd build_isolated
|
||||
for i in *; do
|
||||
if [ -d "$i" ]; then
|
||||
if [ -f "$i/.cproject" ]; then
|
||||
# Set __cplusplus macro to c++11
|
||||
sed -i 's#name="__cplusplus" path="" value="199711L"#name="__cplusplus" path="" value="201103L"#g' "$i/.cproject"
|
||||
fi
|
||||
if [ -f "$i/.project" ]; then
|
||||
# Add PHYTHONPATH to environment
|
||||
sed -i "s#<value>VERBOSE=1|CMAKE_NO_VERBOSE=1|</value>#<value>VERBOSE=1|CMAKE_NO_VERBOSE=1|PYTHONPATH=$PYTHON_PATH</value>#g" "$i/.project"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user