Rework LuCI build system
[project/luci.git] / modules / luci-base / luasrc / init.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Description:
5 Main class
6
7 FileId:
8 $Id$
9
10 License:
11 Copyright 2008 Steven Barth <steven@midlink.org>
12
13 Licensed under the Apache License, Version 2.0 (the "License");
14 you may not use this file except in compliance with the License.
15 You may obtain a copy of the License at
16
17         http://www.apache.org/licenses/LICENSE-2.0
18
19 Unless required by applicable law or agreed to in writing, software
20 distributed under the License is distributed on an "AS IS" BASIS,
21 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 See the License for the specific language governing permissions and
23 limitations under the License.
24
25 ]]--
26
27 local require = require
28
29 -- Make sure that bitlib is loaded
30 if not _G.bit then
31         _G.bit = require "bit"
32 end
33
34 module "luci"
35
36 local v = require "luci.version"
37
38 __version__ = v.luciversion or "trunk"
39 __appname__ = v.luciname    or "LuCI"