Created
November 27, 2015 08:08
-
-
Save k-okada/89d60c10f5fe29d4740c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PKG=jsk-pcl-ros | |
#PKG=jsk-recognition-utils | |
set -x | |
#set -e | |
mkdir -p /tmp/${PKG}-build | |
cd /tmp/${PKG}-build | |
rm -fr *.deb *.changes | |
if [ ! -e ros-indigo-${PKG}_0.3.6.orig.tar.gz ]; then | |
wget http://packages.ros.org/ros/ubuntu/pool/main/r/ros-indigo-${PKG}/ros-indigo-${PKG}_0.3.6.orig.tar.gz | |
fi | |
if [ ! -e ros-indigo-${PKG}_0.3.6-0trusty.debian.tar.gz ]; then | |
wget http://packages.ros.org/ros/ubuntu/pool/main/r/ros-indigo-${PKG}/ros-indigo-${PKG}_0.3.6-0trusty.debian.tar.gz | |
fi | |
rm -fr ros-indigo-${PKG}-0.3.6 || echo "ok" | |
tar -xvzf ros-indigo-${PKG}_0.3.6.orig.tar.gz | |
cd ros-indigo-${PKG}-0.3.6 | |
tar -xvzf ../ros-indigo-${PKG}_0.3.6-0trusty.debian.tar.gz | |
sed -i '[email protected]@0.3.6.1-0@' debian/changelog | |
sed -i '[email protected]@0.3.6.1-0@' debian/gbp.conf | |
sed -i 's@dh_auto_build@dh_auto_build --parallel@' debian/rules | |
DEB_BUILD_OPTIONS=parallel=4 dpkg-buildpackage -rfakeroot -b | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment