From 2cdc13131b4cebcbbacb65b093b2bcff69a0ac4c Mon Sep 17 00:00:00 2001 From: Lukas Bulwahn <lukas.bulwahn@bmw-carit.de> Date: Fri, 4 Jan 2013 15:18:34 +0100 Subject: [PATCH] adding a first version of an installation script for ros-groovy --- install-groovy.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 install-groovy.sh diff --git a/install-groovy.sh b/install-groovy.sh new file mode 100644 index 0000000..5522193 --- /dev/null +++ b/install-groovy.sh @@ -0,0 +1,41 @@ +#!/bin/bash +## Installation script that should run in the virtual machine +# copy it into the virtual machine with: +# scp <user>@192.168.7.1:/<location of install.sh> . +# and run it: +# sh ./install-groovy.sh +# +# local setting (must be adjusted) +USERNAME="lukas" +HOST_IP="192.168.7.1" +SRC_DIRECTORY="/home/lukas/ros_catkin_ws" +# This script does the following steps: +# copy source archive +scp $USERNAME@$HOST_IP:$SRC_DIRECTORY/src.tar.gz . +mkdir ros_catkin_ws +cd ros_catkin_ws +tar -xzf ../src.tar.gz +# patch catkin +patch -p1 << EOF +*** A/src/catkin/cmake/python.cmake 2013-01-04 14:22:33.223884756 +0100 +--- B/src/catkin/cmake/python.cmake 2013-01-04 14:28:01.971898385 +0100 +*************** +*** 6,12 **** + set(PYTHON_VERSION_XDOTY ${PYTHON_VERSION_XDOTY} CACHE STRING "Python version") + + #This should be resolved automatically one day... +! option(SETUPTOOLS_DEB_LAYOUT "ON for debian style python packages layout" ON) + + if(APPLE OR MSVC) + set(SETUPTOOLS_DEB_LAYOUT OFF) +--- 6,12 ---- + set(PYTHON_VERSION_XDOTY ${PYTHON_VERSION_XDOTY} CACHE STRING "Python version") + + #This should be resolved automatically one day... +! option(SETUPTOOLS_DEB_LAYOUT "ON for debian style python packages layout" OFF) + + if(APPLE OR MSVC) + set(SETUPTOOLS_DEB_LAYOUT OFF) +EOF +# run catkin +./src/catkin/bin/catkin_make_isolated --install -- GitLab