Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Tue, 19 Mar 2019 10:05:16 UTC Commit: 70ebfbd52988c8af5e57d5a59791c88db3dec048 https://github.com/geany/geany/commit/70ebfbd52988c8af5e57d5a59791c88db3dec0...
Log Message: ----------- Fix regex to resolve confusion on the removed double space
Also fix a typo in the variable name for the output.
Modified Paths: -------------- scripts/update-year-in-po.sh
Modified: scripts/update-year-in-po.sh 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -5,13 +5,13 @@ set -e # match the files'. Unlikely, but doesn't hurt. export LANG=C
-year=$(grep -Po '(?<="Copyright (c) 2005-)20[0-9][0-9](?=\n)' src/about.c) -echo "new years are: $years" +year=$(grep -Po '(?<="Copyright (c) 2005-)20[0-9][0-9](?=\n)' src/about.c) +echo "new years are: $year"
for f in po/*.po; do echo "processing $f..." sed -f /dev/stdin -i "$f" <<EOF -/^"Copyright (c) 2005-20[0-9][0-9]\\n"$/{ +/^"Copyright (c) 2005-20[0-9][0-9]\\n"$/{ s/\(2005-\)20[0-9][0-9]/\1$year/ n :loop
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).