summaryrefslogtreecommitdiff
path: root/manpages/bin
diff options
context:
space:
mode:
Diffstat (limited to 'manpages/bin')
-rwxr-xr-xmanpages/bin/update-version.sh14
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 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