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

17 lines
342 B
Bash
Raw Normal View History

2010-05-08 11:49:47 +00:00
#!/bin/sh
set -e
2010-06-06 09:23:19 +00:00
DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)"
2010-09-02 11:31:35 +00:00
PROGRAM="LIVE\\\-BUILD"
2010-07-24 15:14:07 +00:00
VERSION="$(cat ../VERSION)"
2010-06-06 09:23:19 +00:00
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