diff options
author | scuri <scuri> | 2011-02-26 02:27:16 +0000 |
---|---|---|
committer | scuri <scuri> | 2011-02-26 02:27:16 +0000 |
commit | 71323643c0a44d402b0eed448c46540e3396408f (patch) | |
tree | dace4abbfe73429c5b9fbda1e2ed78d03a3bd764 /config_lua_module | |
parent | f3cd47662cb821d2355d98d32421b295b5e5689e (diff) |
*** empty log message ***
Diffstat (limited to 'config_lua_module')
-rw-r--r-- | config_lua_module | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/config_lua_module b/config_lua_module index d95e2f3..da61413 100644 --- a/config_lua_module +++ b/config_lua_module @@ -1,8 +1,11 @@ #!/bin/bash +# Include TEC_UNAME definitions +source tec_uname + echo ' ' echo ' This script will configure the Tecgraf libraries in the system' -echo ' to be used from Lua. It was tested only in Ubuntu and in Fedora.' +echo ' to be used from Lua. It was tested in Ubuntu and in Fedora.' echo ' ' echo ' The Run Time libraries must be already installed on the system (see the install script).' echo ' It assumes that Lua binaries are installed using system packages.' @@ -11,24 +14,20 @@ echo ' Must be run with "sudo", or install will fail,' echo ' for example:' echo ' sudo ./config_lua_module' echo ' ' -echo -n Press Enter to continue or Ctrl+C to abort... -read contscr -echo ' ' - -if [ -d /usr/lib64 ]; then - SYSTEM_LIB=/usr/lib64 -else - SYSTEM_LIB=/usr/lib -fi -LUA_LIB=$SYSTEM_LIB/lua/5.1 Make_Lua_Link() { - ln -fsv $SYSTEM_LIB/lib$1'51'.so $1.so + ln -fsv $TEC_SYSTEM_LIB/lib$1'51'.so $1.so } -mkdir -p $LUA_LIB -cd $LUA_LIB +# From tec_uname script +ComputeTecUname +ComputeSystemPaths +#PrintInfo + +Pause +mkdir -p $TEC_LUA_LIB +cd $TEC_LUA_LIB Make_Lua_Link imlua Make_Lua_Link imlua_process |