Skip to content

Commit

Permalink
lua-releng: added luac version check since we only support lua 5.1.
Browse files Browse the repository at this point in the history
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
  • Loading branch information
moonming authored and agentzh committed Jul 11, 2016
1 parent 731481d commit c8abc66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua-releng
Expand Up @@ -14,6 +14,12 @@ my $silent = $opts{s};
my $stop_on_error = $opts{e};
my $no_long_line_check = $opts{L};

my $check_lua_ver = "luac -v | awk '{print\$2}'| grep 5.1";
my $output = `$check_lua_ver`;
if ($output eq '') {
die "ERROR: lua-releng ONLY supports Lua 5.1!\n";
}

if ($#ARGV != -1) {
@luas = @ARGV;

Expand Down

0 comments on commit c8abc66

Please sign in to comment.