X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=manpages%2Fbin%2Fupdate-version.sh;h=0935d39e7285f526483c83a1caecd5527ac84be0;hb=36d4a16fbeaeb9939034b5a3db4bd3985739f669;hp=bfa6fbbbe84c50af66608eaf3c5d265e88e75bca;hpb=6fae187035cc9486574834f78e79dd495055e809;p=live-boot-grml.git diff --git a/manpages/bin/update-version.sh b/manpages/bin/update-version.sh index bfa6fbb..0935d39 100755 --- a/manpages/bin/update-version.sh +++ b/manpages/bin/update-version.sh @@ -1,6 +1,7 @@ #!/bin/sh ## live-boot(7) - System Boot Components +## Copyright (C) 2016-2020 The Debian Live team ## Copyright (C) 2006-2015 Daniel Baumann ## ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING. @@ -11,7 +12,7 @@ set -e PROGRAM="LIVE\\\-BOOT" -VERSION="$(cat ../VERSION)" +VERSION="$(dpkg-parsechangelog -S Version)" DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)" @@ -25,7 +26,7 @@ for MANPAGE in en/* do SECTION="$(basename ${MANPAGE} | awk -F. '{ print $2 }')" - sed -i -e "s|^.TH.*$|.TH ${PROGRAM} ${SECTION} ${DATE} ${VERSION} \"Live Systems Project\"|" ${MANPAGE} + sed -i -e "s|^.TH.*$|.TH ${PROGRAM} ${SECTION} ${DATE} ${VERSION} \"Debian Live Project\"|" ${MANPAGE} done # European date format