summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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