Debian Codegraph @

configure

raw
1 #!/bin/sh
2
3 if [ -f config.orig ]; then
4 mv config.orig config
5 fi
6
7 echo "Trying to where you installed Lua..."
8
9 if which lua; then
10 lua_bin=`which lua`
11 lua_bin_dir=`dirname $lua_bin`
12 else
13 lua_bin=`which lua51`
14 lua_bin_dir=`dirname $lua_bin`
15 fi
16
17 lua_root=`dirname $lua_bin_dir`
18
19 if [ $lua_root != "" ]; then
20 echo "Lua is in $lua_root"
21 echo "Changing config"
22 sed -i.orig -e "s|/usr/local|$lua_root|" config
23 echo "Now run 'make' and 'make install'"
24 else
25 echo "Lua not found, please install Lua (and put in your PATH)"
26 fi
27