Created
January 25, 2012 02:14
-
-
Save ethanrublee/1674188 to your computer and use it in GitHub Desktop.
using catkin for workspace dependency introspection.
This file contains 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
WORKSPACE=`pwd` | |
distro_url=https://raw.github.com/willowgarage/rosdistro/master/fuerte.yaml | |
curl -s $distro_url > distro.yaml | |
deburls=$(python -c "import yaml; print '\n'.join([x['url'] for x in yaml.load(open('distro.yaml'))])") | |
cd $WORKSPACE | |
for x in $deburls | |
do | |
dirname=$(basename ${x%.git}) | |
if [ -e $dirname/.git ] | |
then | |
(cd $dirname && git checkout master && git pull) | |
else | |
git clone $x $dirname | |
fi | |
done | |
cd $WORKSPACE | |
. /home/erublee/catkin_wet/build/setup.sh | |
erublee@dri$ catkin-topological-order | |
catkin | |
rospkg | |
rospack | |
ros | |
genmsg | |
roscpp_core | |
gencpp | |
genpy | |
langs | |
std_msgs | |
common_msgs | |
actionlib | |
ros_comm | |
swig-wx | |
rx | |
erublee@dri$ catkin-topological-order --top langs --action upstream | |
genpy | |
genmsg | |
catkin | |
gencpp | |
erublee@dri$ catkin-topological-order --top langs --action downstream | |
std_msgs | |
common_msgs | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment