live-build/manpages/bin/update-version.sh

19 lines
369 B
Bash
Raw Normal View History

2010-05-08 11:49:47 +00:00
#!/bin/sh
set -e
. ../functions/common.sh
2010-06-06 09:23:19 +00:00
DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)"
PROGRAM="LIVE\\\-HELPER"
VERSION="${CONFIG_VERSION}"
2010-05-08 11:49:47 +00:00
echo "Updating version headers..."
for MANPAGE in en/*
do
SECTION="$(basename ${MANPAGE} | awk -F. '{ print $2 }')"
2010-06-06 09:23:19 +00:00
sed -i -e "s|^.TH.*$|.TH ${PROGRAM} ${SECTION} ${DATE} ${VERSION} \"Debian Live Project\"|" ${MANPAGE}
2010-05-08 11:49:47 +00:00
done