mirror of
https://gh.llkk.cc/https://github.com/WeblateOrg/language-data.git
synced 2025-10-03 15:01:09 +08:00
fix: correctly copy date when udating POT files
This avoids updates containing just timestamp change.
This commit is contained in:
parent
cce2fb3192
commit
461a3ece57
1 changed files with 2 additions and 2 deletions
|
@ -4,10 +4,10 @@
|
|||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
REGX='^"POT-Creation-Date:.*'
|
||||
REGX='^\("POT-Creation-Date: [0-9 +:-]*\)'
|
||||
|
||||
# Grab date from other branch
|
||||
REPL=$(grep "$REGX" "$1" | sed -e 's/\\\\/\\\\\\\\/')
|
||||
REPL=$(sed -n "s/$REGX.*/\\1/p" "$1")
|
||||
|
||||
# Push it into other files
|
||||
sed -i -e "s/$REGX/$REPL/" "$2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue