lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> wget 
> http://sourceforge.net/projects/safelua/files/lua-base/lua-5.2.1.tar.gz/download

You should get the source from lua.org.

The FAQ lists a similar set of commands;
	http://www.lua.org/faq.html#1.1
	
However, a script would be better written with some variables. Here is what I use.
It lets you download any version of Lua, but defaults to the current one.

#!/bin/sh

V=5.2.1
L=lua-${1:-$V}
W=http://www.lua.org/ftp
T=$L.tar.gz

wget -N $W/$T
tar zxf $T
cd $L ; make linux test