Permalink
Browse files

Default to the only existing Lua build in the directory if that is th…

…e layout
  • Loading branch information...
jjensen committed Jan 24, 2017
1 parent 7e13dfc commit 17c569d59f7c3af152b2d4354dfb41281ab719f7
Showing with 9 additions and 6 deletions.
  1. +9 −6 LUAPLUS.jamrules
View
@@ -2,12 +2,15 @@ if ! $(LUA_VERSION) {
local dirs = [ Glob $(LUAPLUS)/Src/LuaPlus : */ : 1 ] ;
dirs = $(dirs:P) ;
dirs = $(dirs:B) ;
- Echo LUA_VERSION needs to be passed in from the command-line. ;
- Echo ;
- Echo " jam LUA_VERSION=lua51-luaplus" ;
- Echo ;
- Echo "Available versions:" $(dirs) ;
- Exit ;
+ if $(dirs[2]) {
+ Echo LUA_VERSION needs to be passed in from the command-line. ;
+ Echo ;
+ Echo " jam LUA_VERSION=lua51-luaplus" ;
+ Echo ;
+ Echo "Available versions:" $(dirs) ;
+ Exit ;
+ }
+ LUA_VERSION = $(dirs[1]) ;
}
LUA_VERSION ?= lua51-luaplus ;

0 comments on commit 17c569d

Please sign in to comment.