Skip to content

Commit 8be7095

Browse files
committed
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.
1 parent 6675601 commit 8be7095

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

prepare-release

+3-2
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@ if [ "$1" = 'pre-export' ]; then
8181

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

0 commit comments

Comments
 (0)