Use the release date from the changelog as the date for the last modification of each manpage

This commit is contained in:
Roland Clobus 2022-01-07 10:03:04 +01:00
parent d7316bcec9
commit 63399dab6e
No known key found for this signature in database
GPG Key ID: 62C57C6AA61495BD
1 changed files with 5 additions and 4 deletions

View File

@ -13,12 +13,13 @@ set -e
PROGRAM="LIVE\\\-BUILD"
VERSION="$(cd .. && dpkg-parsechangelog -S Version)"
RELEASE_DATE="$(cd .. && dpkg-parsechangelog -S Timestamp)"
DATE="$(LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y\\\\-%m\\\\-%d)"
DATE="$(LC_ALL=C date --utc --date="@${RELEASE_DATE}" +%Y\\\\-%m\\\\-%d)"
DAY="$(LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%d)"
MONTH="$(LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%m)"
YEAR="$(LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y)"
DAY="$(LC_ALL=C date --utc --date="@${RELEASE_DATE}" +%d)"
MONTH="$(LC_ALL=C date --utc --date="@${RELEASE_DATE}" +%m)"
YEAR="$(LC_ALL=C date --utc --date="@${RELEASE_DATE}" +%Y)"
echo "Updating version headers..."