-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_lua_module
43 lines (37 loc) · 1.04 KB
/
config_lua_module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/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 in Ubuntu and in Fedora.'
echo ' '
echo ' The current Lua version is defined by the variables:'
echo ' USE_LUA51 (default) or USE_LUA52 or USE_LUA52'
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_SFX.so $1.so
}
# From tec_uname script
ComputeTecUname
ComputeLuaVersion
ComputeSystemPaths
#PrintInfo
Pause
mkdir -p $TEC_LUA_LIB
cd $TEC_LUA_LIB
Make_Lua_Link iuplua
Make_Lua_Link iupluacontrols
Make_Lua_Link iupluacd
Make_Lua_Link iupluagl
Make_Lua_Link iuplua_pplot
Make_Lua_Link iupluaim
Make_Lua_Link iupluaimglib
Make_Lua_Link iupluatuio