[sysadmin-bin] avoid matching across multiple lines
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] avoid matching across multiple lines
- Date: Mon, 28 Jul 2014 20:15:58 +0000 (UTC)
commit 3c07e3744ba10be8cacf603d516ccb9ded862e18
Author: Olav Vitters <olav vitters nl>
Date: Mon Jul 28 22:15:55 2014 +0200
avoid matching across multiple lines
git/pre-receive-check-po | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/git/pre-receive-check-po b/git/pre-receive-check-po
index 4292762..ce978b2 100755
--- a/git/pre-receive-check-po
+++ b/git/pre-receive-check-po
@@ -48,7 +48,7 @@ EOF
fi
# Do a simplistic check to for keyword not ending with a semicolon
- result=`git cat-file blob "$rev:$path" | sed -rn '/^#: .*\.desktop/{:start /\nmsgstr/!{N;b start};/msgid
[^\n]+;"/{/msgstr [^\n]+;"/!p}}' 2>&1`
+ result=`git cat-file blob "$rev:$path" | sed -rn '/^#: [^\n]+\.desktop/{:start /\nmsgstr/!{N;b
start};/msgid [^\n]+;"/{/msgstr [^\n]+;"/!p}}' 2>&1`
if [ "$result" != "" ]; then
cat <<EOF >&2
---
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]