diff options
author | Daniel Baumann <daniel@debian.org> | 2010-06-06 11:23:19 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:10 +0100 |
commit | c0d102285904c471804b79e33701fe0a76b7b79b (patch) | |
tree | f193544d03257b1bfcd350fc40ed344580d546f5 /manpages | |
parent | 313ffd491ab9dc95759fa4a94179a635fb876abe (diff) | |
download | vyos-live-build-c0d102285904c471804b79e33701fe0a76b7b79b.tar.gz vyos-live-build-c0d102285904c471804b79e33701fe0a76b7b79b.zip |
Updating update-version script.
Diffstat (limited to 'manpages')
-rwxr-xr-x | manpages/bin/update-version.sh | 6 |
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 |