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/bin | |
parent | 313ffd491ab9dc95759fa4a94179a635fb876abe (diff) | |
download | live-build-c0d102285904c471804b79e33701fe0a76b7b79b.zip live-build-c0d102285904c471804b79e33701fe0a76b7b79b.tar.gz |
Updating update-version script.
Diffstat (limited to 'manpages/bin')
-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 792d1e8..f1d9ee4 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 |