Skip to content

Instantly share code, notes, and snippets.

@furushchev
Forked from k-okada/gist:a1990dd4586d9f9fa819
Last active July 25, 2016 06:33
Show Gist options
  • Save furushchev/6c0e1fb3f6ecdb8b744c to your computer and use it in GitHub Desktop.
Save furushchev/6c0e1fb3f6ecdb8b744c to your computer and use it in GitHub Desktop.
This script generates debian package that includes enormous speed up version roslaunch.
#!/bin/bash
set -x
set -e
DIR="/tmp/patch"
if [ -d $DIR ]; then rm -rf $DIR; fi
mkdir -p $DIR && cd $DIR
# generate patched debian package of roslaunch
git clone https://github.com/ros-gbp/ros_comm-release roslaunch
wget --no-check-certificate https://github.com/ros/ros_comm/pull/676.diff -O 676.diff
wget --no-check-certificate https://github.com/ros/ros_comm/pull/682.diff -O 682.diff
cd roslaunch
git checkout origin/debian/hydro/precise/roslaunch
patch -p3 < ../676.diff
patch -p3 < ../682.diff
sed -i 's@1.10.12@1.10.99@' package.xml debian/changelog
dpkg-buildpackage -rfakeroot -uc -b
# generate patched debian package of roslib
git clone https://github.com/ros-gbp/ros-release roslib
wget --no-check-certificate https://github.com/ros/ros/pull/91.diff -O 91.diff
wget --no-check-certificate https://github.com/ros/ros/pull/95.diff -O 95.diff
cd roslib
git checkout origin/debian/hydro/precise/roslib
patch -p3 < ../91.diff
patch -p3 < ../95.diff
sed -i 's@1.10.11@1.10.99@' package.xml debian/changelog
dpkg-buildpackage -rfakeroot -uc -b
# install
cd ..
sudo dpkg -i *.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment