Automatically optaining version number for config tree format.

This commit is contained in:
Daniel Baumann 2009-09-11 11:50:08 +02:00
parent 4df03e2012
commit e0209bb337
2 changed files with 2 additions and 1 deletions

View File

@ -10,5 +10,6 @@
PROGRAM="$(basename ${0})"
PACKAGE="live-helper"
VERSION="1.0.5-2"
CONFIG_VERSION="$(echo ${VERSION} | awk -F- '{ print $1 }')"
PATH="${PWD}/scripts:${PATH}"

View File

@ -783,7 +783,7 @@ cat > config/common << EOF
# config/common - common options for live-helper(7)
# LH_CONFIG_VERSION: internal version of the configuration file format
LH_CONFIG_VERSION="1"
LH_CONFIG_VERSION="${CONFIG_VERSION}"
# \$LH_APT: set package manager
# (Default: ${LH_APT})