aboutsummaryrefslogtreecommitdiff
path: root/fontconfig/new-version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fontconfig/new-version.sh')
-rw-r--r--fontconfig/new-version.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/fontconfig/new-version.sh b/fontconfig/new-version.sh
index 3c620ae4c..39514302e 100644
--- a/fontconfig/new-version.sh
+++ b/fontconfig/new-version.sh
@@ -71,8 +71,8 @@ if [ $version != $last ]; then
# header
#
(sed '/^2\.[0-9.]*/,$d' README |
- sed -e "s/Version.*/Version $version_note/" \
- -e "s/200.*/$date/" | awk '
+ sed -r -e "s/Version.*/Version $version_note/" \
+ -e "s/[0-9]{4}\-[0-9]{2}\-[0-9]{2}$/$date/" | awk '
/^[ \t]/ {
gsub ("^[ \t]*", "");
gsub ("[ \t]*$", "");