-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
env-hooks: install env-hook for ocl-lua to etc/orocos/OROCOS_TARGET/p…
…rofile.d The env-hook adds the installation folders of the ocl-lua modules to the LUA_PATH/LUA_CPATH environment variable. The scripts in etc/orocos/OROCOS_TARGET/profile.de will be sourced in lexical order by a new setup.sh script located in the orocos_toolchain repository. Signed-off-by: Johannes Meyer <johannes@intermodalics.eu>
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#!/bin/sh | ||
|
||
if [ "x$LUA_PATH" = "x" ]; then | ||
LUA_PATH=";" | ||
if [ -d "@CMAKE_INSTALL_PREFIX@/share/lua/5.1" ]; then | ||
if [ "x$LUA_PATH" = "x" ]; then | ||
LUA_PATH=";" | ||
fi | ||
export LUA_PATH="$LUA_PATH;@CMAKE_INSTALL_PREFIX@/share/lua/5.1/?.lua" | ||
fi | ||
export LUA_PATH="$LUA_PATH;@CMAKE_INSTALL_PREFIX@/share/lua/5.1/?.lua" | ||
|
||
if [ "x$LUA_CPATH" = "x" ]; then | ||
LUA_CPATH=";" | ||
if [ -d "@CMAKE_INSTALL_PREFIX@/lib/lua/5.1" ]; then | ||
if [ "x$LUA_CPATH" = "x" ]; then | ||
LUA_CPATH=";" | ||
fi | ||
export LUA_CPATH="$LUA_CPATH;@CMAKE_INSTALL_PREFIX@/lib/lua/5.1/?.so" | ||
fi | ||
export LUA_CPATH="$LUA_CPATH;@CMAKE_INSTALL_PREFIX@/lib/lua/5.1/?.so" | ||
|