luci/build/mkversion.sh
Jo-Philipp Wich 89c8f98b12 build: add mkversion.sh helper script
contrib: (re-)generate version.lua at build time
libs/core: use version.lua
themes: adept header to version.lua, fix css for openwrt.org
2009-01-17 16:35:02 +00:00

21 lines
367 B
Bash
Executable file

#!/bin/sh
local variant
if [ "${4%%/*}" = "branches" ]; then
variant="LuCI ${4##*[-/]} Branch"
elif [ "${4%%/*}" = "tags" ]; then
variant="LuCI ${4##*[-/]} Release"
else
variant="LuCI Trunk"
fi
cat <<EOF > $1
module "luci.version"
distname = "${2:-OpenWrt}"
distversion = "${3:-Development Snapshot}"
luciname = "$variant"
luciversion = "${5:-svn}"
EOF