Browse Source

prepare-release: Fix last-modification detection for manpages

Pass -i to git log, so "Release foo" is detected as well, not just
"release foo", and also handle the rename of Git-Dch to Gbp-Dch.
tags/debian/1.7.0
Julian Andres Klode 2 years ago
parent
commit
8be7095570
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      prepare-release

+ 3
- 2
prepare-release View File

@@ -81,10 +81,11 @@ if [ "$1" = 'pre-export' ]; then

# update the last-modification field of manpages based on git changes
grep --files-with-matches '<date>' doc/*.xml | while read file; do \
LASTMOD="$(date -d "@$(git log --format='%at' --max-count=1 --invert-grep --fixed-strings --grep 'review
LASTMOD="$(date -d "@$(git log -i --format='%at' --max-count=1 --invert-grep --fixed-strings --grep 'review
typo
release
Git-Dch: Ignore' "$file")" '+%Y-%m-%dT00:00:00Z')"
Git-Dch: Ignore
Gbp-Dch: ignore' "$file")" '+%Y-%m-%dT00:00:00Z')"
sed -i -e "s#^\([ ]\+\)<date>.*</date>\$#\1<date>$LASTMOD</date>#" "$file"
done



Loading…
Cancel
Save