Skip to content

Instantly share code, notes, and snippets.

@tik0
Last active April 17, 2020 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tik0/e131c61ac72c005d12a77a105d634029 to your computer and use it in GitHub Desktop.
Save tik0/e131c61ac72c005d12a77a105d634029 to your computer and use it in GitHub Desktop.
A build script for the ASE lecture
#!/bin/bash
# example: /usr/bin/parallel-ssh -i -h ~/.pssh_hosts_files -l tkorthals -A "wget -O - .../build_ase.sh > /tmp/build_ase.sh; bash /tmp/build_ase.sh"
set -e
source /opt/ros/kinetic/setup.bash
F="/media/localdisk/data/$(whoami)"
C="${F}/catkin_ws"
S="${C}/src"
A="${S}/ase_exercises"
D="${C}/devel"
# create folder structure
rm -rf $F
mkdir $F
chmod 700 $F
mkdir $C
mkdir $S
# Clone the repo
cd $S
git clone https://github.com/autonomoussystemsengineering/ase_exercises.git
cd $A
git submodule update --init --recursive
# Build the excercise
cd $C
catkin_make -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_FLAGS="-std=c++11"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment