flm01/mote/v1/openwrt/package/luci/build/mkversion.sh
Bart Van Der Meerssche 3a28838b29 change repository layout
2010-07-07 16:37:03 +02: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