summaryrefslogtreecommitdiff
path: root/manpages
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-06-06 11:23:19 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:10 +0100
commitc0d102285904c471804b79e33701fe0a76b7b79b (patch)
treef193544d03257b1bfcd350fc40ed344580d546f5 /manpages
parent313ffd491ab9dc95759fa4a94179a635fb876abe (diff)
downloadvyos-live-build-c0d102285904c471804b79e33701fe0a76b7b79b.tar.gz
vyos-live-build-c0d102285904c471804b79e33701fe0a76b7b79b.zip
Updating update-version script.
Diffstat (limited to 'manpages')
-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