Changeset 6016


Ignore:
Timestamp:
Apr 3, 2010, 9:30:46 PM (9 years ago)
Author:
jow
Message:

build: get version from /etc/openwrt_release if applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • luci/trunk/build/mkversion.sh

    r4076 r6016  
    1212
    1313cat <<EOF > $1
     14local pcall, dofile, _G = pcall, dofile, _G
     15
    1416module "luci.version"
    1517
    16 distname    = "${2:-OpenWrt}"
    17 distversion = "${3:-Development Snapshot}"
     18if pcall(dofile, "/etc/openwrt_release") and _G.DISTRIB_DESCRIPTION then
     19    distname    = ""
     20    distversion = _G.DISTRIB_DESCRIPTION
     21else
     22    distname    = "${2:-OpenWrt}"
     23    distversion = "${3:-Development Snapshot}"
     24end
    1825
    1926luciname    = "$variant"
Note: See TracChangeset for help on using the changeset viewer.