diff options
author | Daniel Baumann <daniel@debian.org> | 2010-05-08 13:49:47 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2010-05-08 19:03:46 +0200 |
commit | bc55837d994eeaf3329fe6eb91574b3d1a5bf3d0 (patch) | |
tree | 91115d7f7b1ba78376c9b08e9311ad5478b66430 /manpages/bin | |
parent | d44b6bb8d2faf54b053b03b752860a5476f1ece1 (diff) | |
download | vyos-live-build-bc55837d994eeaf3329fe6eb91574b3d1a5bf3d0.tar.gz vyos-live-build-bc55837d994eeaf3329fe6eb91574b3d1a5bf3d0.zip |
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 000000000..792d1e8a6 --- /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 |