Files
@ r24127:d81764321def
Branch filter:
Location: cpp/openttd-patchpack/source/azure-pipelines/changelog.sh - annotation
r24127:d81764321def
835 B
application/x-sh
Update: Translations from eints
hungarian: 26 changes by Brumi
korean: 3 changes by telk5093
hungarian: 26 changes by Brumi
korean: 3 changes by telk5093
r23144:9a2ff041af83 r23144:9a2ff041af83 r24070:8e59f43cf83a r23144:9a2ff041af83 r23304:3092f6a9b114 r23144:9a2ff041af83 r23905:6345d2410195 r23144:9a2ff041af83 r23905:6345d2410195 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r24074:6a1c70599c21 r23144:9a2ff041af83 | #!/bin/sh
tag=$(git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null | sed 's@\^0$@@')
# If we are a tag, show the part of the changelog till (but excluding) the last stable
if [ -n "$tag" ]; then
grep='^[0-9]\+\.[0-9]\+\.[0-9]\+[^-]'
next=$(cat changelog.txt | grep '^[0-9]' | awk 'BEGIN { show="false" } // { if (show=="true") print $0; if ($1=="'$tag'") show="true"} ' | grep "$grep" | head -n1 | sed 's/ .*//')
cat changelog.txt | awk 'BEGIN { show="false" } /^[0-9]+.[0-9]+.[0-9]+/ { if ($1=="'$next'") show="false"; if ($1=="'$tag'") show="true";} // { if (show=="true") print $0 }'
exit 0
fi
# In all other cases, show the git log of the last 7 days
revdate=$(git log -1 --pretty=format:"%ci")
last_week=$(date -d "$revdate -7days" +"%Y-%m-%d %H:%M")
git log --after="${last_week}" --pretty=fuller
|