diff options
author | Daniel Baumann <daniel@debian.org> | 2010-05-08 13:49:47 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:07 +0100 |
commit | 79dd9820094020395d7e3251959f65b11bed054e (patch) | |
tree | 91115d7f7b1ba78376c9b08e9311ad5478b66430 /manpages/bin | |
parent | caa5ad90b53a883135c4b476dfbe9babbeff4097 (diff) | |
download | live-build-79dd9820094020395d7e3251959f65b11bed054e.zip live-build-79dd9820094020395d7e3251959f65b11bed054e.tar.gz |
Reworking manpages for live-helper 2.
Diffstat (limited to 'manpages/bin')
-rwxr-xr-x | manpages/bin/update-version.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manpages/bin/update-version.sh b/manpages/bin/update-version.sh new file mode 100755 index 0000000..792d1e8 --- /dev/null +++ b/manpages/bin/update-version.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +. ../functions/common.sh + +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} +done |