Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a Catkin env hook to set OPENRAVE_PLUGINS.
- Loading branch information
Michael Koval
committed
Mar 20, 2016
1 parent
e2e720e
commit c4bf2e5
Showing
3 changed files
with
24 additions
and
3 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
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,18 @@ | ||
#!/bin/sh | ||
|
||
# determine if we're in the devel or install space | ||
if [ "@DEVELSPACE@" = "True" -o "@DEVELSPACE@" = "true" ] | ||
then | ||
PLUGINS=@CATKIN_DEVEL_PREFIX@/lib/openrave-@OpenRAVE_LIBRARY_SUFFIX@ | ||
else | ||
PLUGINS=@CMAKE_INSTALL_PREFIX@/lib/openrave-@OpenRAVE_LIBRARY_SUFFIX@ | ||
fi | ||
|
||
# append to paths (if not already there) | ||
# from http://unix.stackexchange.com/a/124447 | ||
case ":${OPENRAVE_PLUGINS:=$PLUGINS}:" in | ||
*:$PLUGINS:*) ;; | ||
*) OPENRAVE_PLUGINS="$OPENRAVE_PLUGINS:$PLUGINS" ;; | ||
esac | ||
|
||
export OPENRAVE_PLUGINS |
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