From bc55837d994eeaf3329fe6eb91574b3d1a5bf3d0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 8 May 2010 13:49:47 +0200 Subject: Reworking manpages for live-helper 2. --- manpages/bin/update-version.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 manpages/bin/update-version.sh (limited to 'manpages/bin') 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 -- cgit v1.2.3