forked from ros-o/catkin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/willowgarage/catkin
- Loading branch information
Showing
18 changed files
with
405 additions
and
119 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
# Dummy buildspace file containing nothing of interest | ||
# | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# | ||
# Dummy installspace file containing nothing of interest. | ||
# | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python | ||
|
||
import yaml | ||
import argparse | ||
import sys | ||
|
||
def parse_args(argv=None): | ||
parser = argparse.ArgumentParser(description="Parse a rosinstall file, and output fields in a CSV format.") | ||
parser.add_argument('ri_file',help='The rosinstall file to parse.') | ||
parser.add_argument('vcs_type',help='The vcs type') | ||
parser.add_argument('FIELD',nargs='*',help='The field to extract from the ros install file per entry.') | ||
return parser.parse_args(args=argv) | ||
|
||
args = parse_args() | ||
ri_file = yaml.load(open(args.ri_file)) | ||
for info in [ x[args.vcs_type] for x in ri_file if args.vcs_type in x] : | ||
infos = [] | ||
for x in args.FIELD: | ||
val = info.get(x,None) | ||
if val: | ||
infos.append(val) | ||
if infos: | ||
sys.stdout.write(','.join(infos)+'\n') |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
if (NOT IS_DIRECTORY ${CMAKE_BINARY_DIR}/etc/catkin/profile.d) | ||
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/etc/catkin/profile.d) | ||
endif() | ||
|
||
function(catkin_add_env_hooks BUILDSPACE INSTALLSPACE) | ||
|
||
configure_file(${BUILDSPACE}.in ${CMAKE_BINARY_DIR}/etc/catkin/profile.d/${BUILDSPACE}) | ||
configure_file(${INSTALLSPACE}.in ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${INSTALLSPACE}) | ||
|
||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${INSTALLSPACE} | ||
DESTINATION | ||
etc/catkin/profile.d) | ||
|
||
endfunction() | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
export ROS_ROOT=@CMAKE_SOURCE_DIR@/ros | ||
export PYTHONPATH=@CMAKE_BINARY_DIR@/gen/py:@CMAKE_BINARY_DIR@/lib:$PYTHONPATH | ||
export PATH=@CMAKE_BINARY_DIR@/bin:@catkin_SOURCE_DIR@/bin:@CMAKE_SOURCE_DIR@/ros/bin:$PATH | ||
export PATH=@CMAKE_BINARY_DIR@/bin:@catkin_SOURCE_DIR@/bin:$PATH | ||
export CATKIN_BINARY_DIR=@CMAKE_BINARY_DIR@ | ||
export CATKIN_SOURCE_DIR=@CMAKE_SOURCE_DIR@ | ||
export ROS_PACKAGE_PATH=@CMAKE_SOURCE_DIR@:$ROS_PACKAGE_PATH | ||
export ROS_TEST_RESULTS_DIR=@CMAKE_BINARY_DIR@/test_results | ||
|
||
for envfile in $CATKIN_BINARY_DIR/etc/catkin/profile.d/* | ||
do | ||
. $envfile | ||
done | ||
|
Oops, something went wrong.