* luci-0.8: backport build system fixes

This commit is contained in:
Jo-Philipp Wich 2008-10-29 19:40:15 +00:00
parent 9c53825afb
commit 4b20e81132
2 changed files with 33 additions and 15 deletions

View file

@ -1,4 +1,19 @@
#!/usr/bin/lua
--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: index.lua 3548 2008-10-09 20:28:07Z Cyrus $
]]--
local cbi = require "luci.cbi"
local i18n = require "luci.i18n"
local util = require "luci.util"
@ -74,7 +89,7 @@ for i, sec in pairs(map.children) do if util.instanceof(sec, cbi.TypedSection) t
end
if util.instanceof(opt, cbi.Flag) then
print (" option type boolean")
print (" option datatype boolean")
elseif util.instanceof(opt, cbi.DynamicList) then
print (" option type list")
elseif util.instanceof(opt, cbi.ListValue) then

View file

@ -8,6 +8,9 @@ LUA_LIBRARYDIR = /usr/lib/lua
LUCI_MODULEDIR = $(LUA_MODULEDIR)/luci
LUCI_LIBRARYDIR = $(LUA_LIBRARYDIR)/luci
UVL_SCHEMEDIR = host/lib/uci/schema
HTDOCS = /www
LUA=$(shell which lua)
XSLTPROC=$(shell which xsltproc)