summaryrefslogtreecommitdiff
path: root/manpages/bin/update-version.sh
blob: 792d1e8a6ca282cd063bae198669fe785bad9ca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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