Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 540357f88e
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (21 sloc) 0.536 kb
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
#!/bin/sh

if [ -f config.orig ]; then
  mv config.orig config
fi

echo "Trying to where you installed Lua..."

if which lua; then
  lua_bin=`which lua`
  lua_bin_dir=`dirname $lua_bin`
else
  lua_bin=`which lua51`
  lua_bin_dir=`dirname $lua_bin`
fi

lua_root=`dirname $lua_bin_dir`

if [ $lua_root != "" ]; then
  echo "Lua is in $lua_root"
  echo "Changing config"
  sed -i.orig -e "s|/usr/local|$lua_root|" config
  echo "Now run 'make' and 'make install'"
else
  echo "Lua not found, please install Lua (and put in your PATH)"
fi
Something went wrong with that request. Please try again.