summaryrefslogtreecommitdiff
path: root/config_lua_module
blob: 4ce4220cad0714ee4fc4f7e98f3c882de6e26669 (plain)
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
#!/bin/bash

echo ' '
echo '  This script will configure the Tecgraf libraries in the system'
echo '  to be used from Lua. It was tested only in Ubuntu.'
echo ' '
echo '  The Run Time libraries must be already installed on the system.'
echo ' '
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 ' '

SYSTEM_LIB=/usr/lib
LUA_LIB=$SYSTEM_LIB/lua/5.1

Make_Lua_Link()
{
  ln -fsv $SYSTEM_LIB/lib$1'51'.so $1.so
}

mkdir -p $LUA_LIB
cd $LUA_LIB

Make_Lua_Link imlua
Make_Lua_Link imlua_process
Make_Lua_Link imlua_jp2
Make_Lua_Link imlua_fftw