summaryrefslogtreecommitdiff
path: root/manpages/bin
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-06-06 11:21:06 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:53:26 +0100
commit9e37082e0b8cc1396861837a6ebeb558deece2c5 (patch)
tree1bf37aa120be405390a06d5d4e36f5623e6a199f /manpages/bin
parentf93ff6d572484373c0c828d02142a9d16a5f3b0e (diff)
downloadlive-boot-9e37082e0b8cc1396861837a6ebeb558deece2c5.tar.gz
live-boot-9e37082e0b8cc1396861837a6ebeb558deece2c5.zip
Updating update-version script.
Diffstat (limited to 'manpages/bin')
-rwxr-xr-xmanpages/bin/update-version.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/manpages/bin/update-version.sh b/manpages/bin/update-version.sh
index 4b7fd1d..cabae5f 100755
--- a/manpages/bin/update-version.sh
+++ b/manpages/bin/update-version.sh
@@ -2,6 +2,8 @@
set -e
+DATE="$(date +%Y\\\\-%m\\\\-%d)"
+PROGRAM="LIVE\\\-BOOT"
VERSION="$(cat ../VERSION)"
echo "Updating version headers..."
@@ -10,5 +12,5 @@ for MANPAGE in en/*
do
SECTION="$(basename ${MANPAGE} | awk -F. '{ print $2 }')"
- sed -i -e "s|^.TH.*$|.TH LIVE\\\-BOOT ${SECTION} $(date +%Y\\\\-%m\\\\-%d) ${VERSION} \"Debian Live Project\"|" ${MANPAGE}
+ sed -i -e "s|^.TH.*$|.TH ${PROGRAM} ${SECTION} ${DATE} ${VERSION} \"Debian Live Project\"|" ${MANPAGE}
done