summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-06-06 11:23:19 +0200
committerDaniel Baumann <daniel@debian.org>2010-06-06 13:41:51 +0200
commit28a565b64184dfe8fbe91ae076b3ef8fcab156ca (patch)
treef193544d03257b1bfcd350fc40ed344580d546f5
parent2c5302d1d0f9bba5a8a5b95500a34daaf7baa3fb (diff)
downloadvyos-live-build-28a565b64184dfe8fbe91ae076b3ef8fcab156ca.tar.gz
vyos-live-build-28a565b64184dfe8fbe91ae076b3ef8fcab156ca.zip
Updating update-version script.
-rwxr-xr-xmanpages/bin/update-version.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/manpages/bin/update-version.sh b/manpages/bin/update-version.sh
index 792d1e8a6..f1d9ee4c9 100755
--- a/manpages/bin/update-version.sh
+++ b/manpages/bin/update-version.sh
@@ -4,11 +4,15 @@ set -e
. ../functions/common.sh
+DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)"
+PROGRAM="LIVE\\\-HELPER"
+VERSION="${CONFIG_VERSION}"
+
echo "Updating version headers..."
for MANPAGE in en/*
do
SECTION="$(basename ${MANPAGE} | awk -F. '{ print $2 }')"
- sed -i -e "s|^.TH.*$|.TH LIVE\\\-HELPER ${SECTION} $(date +%Y\\\\-%m\\\\-%d) ${CONFIG_VERSION} \"Debian Live Project\"|" ${MANPAGE}
+ sed -i -e "s|^.TH.*$|.TH ${PROGRAM} ${SECTION} ${DATE} ${VERSION} \"Debian Live Project\"|" ${MANPAGE}
done