Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: c69a11d516
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (34 sloc) 0.903 kB
#!/bin/bash
#Current Lua Version
LUA_VER=5.1
LUA_PFX=51
# 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 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.'
echo ' '
echo ' Must be run with "sudo", or install will fail,'
echo ' for example:'
echo ' sudo ./config_lua_module'
echo ' '
Make_Lua_Link()
{
ln -fsv $TEC_SYSTEM_LIB/lib$1$LUA_PFX.so $1.so
}
# From tec_uname script
ComputeTecUname
ComputeSystemPaths
#PrintInfo
Pause
mkdir -p $TEC_LUA_LIB
cd $TEC_LUA_LIB
Make_Lua_Link cdlua
Make_Lua_Link cdluacontextplus
Make_Lua_Link cdluacairo
Make_Lua_Link cdluagl
Make_Lua_Link cdluaim
Make_Lua_Link cdluapdf
Jump to Line
Something went wrong with that request. Please try again.