summaryrefslogtreecommitdiff
path: root/manpages/bin/update-version.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-26 12:38:38 +0200
committerDaniel Baumann <daniel@debian.org>2010-09-26 15:11:45 +0200
commit152d608f61fd22a1414c3a90ba061b790200350a (patch)
tree44a6d3a12cd11067aea2a4d43eb9133cc25bad2f /manpages/bin/update-version.sh
downloadvyos-live-build-152d608f61fd22a1414c3a90ba061b790200350a.tar.gz
vyos-live-build-152d608f61fd22a1414c3a90ba061b790200350a.zip
Adding debian version 3.0~a1-1.
Diffstat (limited to 'manpages/bin/update-version.sh')
-rwxr-xr-xmanpages/bin/update-version.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/manpages/bin/update-version.sh b/manpages/bin/update-version.sh
new file mode 100755
index 000000000..d01949b1a
--- /dev/null
+++ b/manpages/bin/update-version.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)"
+PROGRAM="LIVE\\\-BUILD"
+VERSION="$(cat ../VERSION)"
+
+echo "Updating version headers..."
+
+for MANPAGE in en/*
+do
+ SECTION="$(basename ${MANPAGE} | awk -F. '{ print $2 }')"
+
+ sed -i -e "s|^.TH.*$|.TH ${PROGRAM} ${SECTION} ${DATE} ${VERSION} \"Debian Live Project\"|" ${MANPAGE}
+done