diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build/mkversion.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build/mkversion.sh b/build/mkversion.sh new file mode 100755 index 000000000..2361e5f3b --- /dev/null +++ b/build/mkversion.sh @@ -0,0 +1,21 @@ +#!/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 |