From e0209bb3375f57c39271b99df6c7b6091fdb8376 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 11 Sep 2009 11:50:08 +0200 Subject: Automatically optaining version number for config tree format. --- functions/common.sh | 1 + helpers/lh_config | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/common.sh b/functions/common.sh index e9c45d4..7e9e121 100755 --- a/functions/common.sh +++ b/functions/common.sh @@ -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}" diff --git a/helpers/lh_config b/helpers/lh_config index 03297be..b029e9a 100755 --- a/helpers/lh_config +++ b/helpers/lh_config @@ -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}) -- cgit v1.0