summaryrefslogtreecommitdiff
path: root/config_lua_module
diff options
context:
space:
mode:
authorscuri <scuri>2010-11-12 15:08:15 +0000
committerscuri <scuri>2010-11-12 15:08:15 +0000
commit19c70d3e272f74879b035da860bb7ad3baf06a7f (patch)
tree0e949f7e0a946b01a69ce8f5452758a23735f540 /config_lua_module
parent1d720a28c6b3ba7d66efbc5ae72ed7bf60e0ac78 (diff)
*** empty log message ***
Diffstat (limited to 'config_lua_module')
-rw-r--r--config_lua_module34
1 files changed, 14 insertions, 20 deletions
diff --git a/config_lua_module b/config_lua_module
index c7a5f3a..7b33f55 100644
--- a/config_lua_module
+++ b/config_lua_module
@@ -14,26 +14,20 @@ echo -n Press Enter to continue or Ctrl+C to abort...
read contscr
echo ' '
-mkdir -p /usr/lib/lua/5.1
-cd /usr/lib/lua/5.1
+SYSTEM_LIB=/usr/lib
+LUA_LIB=$SYSTEM_LIB/lua/5.1
-# ln -fsv /usr/lib/libiuplua51.so iuplua.so
-# ln -fsv /usr/lib/libiupluacontrols51.so iupluacontrols.so
-# ln -fsv /usr/lib/libiupluacd51.so iupluacd.so
-# ln -fsv /usr/lib/libiupluagl51.so iupluagl.so
-# ln -fsv /usr/lib/libiuplua_pplot51.so iuplua_pplot.so
-# ln -fsv /usr/lib/libiupluaim51.so iupluaim.so
-# ln -fsv /usr/lib/libiupluaimglib51.so iupluaimglib.so
-# ln -fsv /usr/lib/libiupluatuio51.so iupluatuio.so
+Make_Lua_Link()
+{
+ ln -fsv $SYSTEM_LIB/lib$1'51'.so $1.so
+}
-ln -fsv /usr/lib/libcdlua51.so cdlua51.so
-ln -fsv /usr/lib/libcdluacontextplus51.so cdluacontextplus.so
-ln -fsv /usr/lib/libcdluacairo51.so cdluacairo.so
-ln -fsv /usr/lib/libcdluagl51.so cdluagl.so
-ln -fsv /usr/lib/libcdluaim51.so cdluaim.so
-ln -fsv /usr/lib/libcdluapdf51.so cdluapdf.so
+mkdir -p $LUA_LIB
+cd $LUA_LIB
-# ln -fsv /usr/lib/libimlua51.so imlua.so
-# ln -fsv /usr/lib/libimlua_process51.so imlua_process.so
-# ln -fsv /usr/lib/libimlua_jp251.so imlua_jp2.so
-# ln -fsv /usr/lib/libimlua_fftw51.so imlua_fftw.so
+Make_Lua_Link cdlua
+Make_Lua_Link cdluacontextplus
+Make_Lua_Link cdluacairo
+Make_Lua_Link cdluagl
+Make_Lua_Link cdluaim
+Make_Lua_Link cdluapdf