diff options
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 |