Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Marcus B Spencer <marcus@marcusspencer.xyz>
To: ffmpeg-devel@ffmpeg.org
Cc: Marcus B Spencer <marcus@marcusspencer.xyz>
Subject: [FFmpeg-devel] [PATCH 1/2] tools/murge, tools/patcheck: use `grep -E`
Date: Thu, 18 Jul 2024 09:48:57 -0500
Message-ID: <20240718144858.11834-1-marcus@marcusspencer.xyz> (raw)

Use `grep -E` instead of egrep, because it is deprecated.

See common question #17 under
https://www.gnu.org/software/grep/manual/grep.html#Usage-1

Signed-off-by: Marcus B Spencer <marcus@marcusspencer.xyz>
---
 tools/murge    | 6 +++---
 tools/patcheck | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/murge b/tools/murge
index f22fcfda81..d43a19bb8b 100755
--- a/tools/murge
+++ b/tools/murge
@@ -1,9 +1,9 @@
 #!/bin/sh
 
 grep -A99999 '^<<<<<<<' | grep -B99999 '^>>>>>>>' >murge.X
-grep -A99999 '^====' murge.X | egrep -v '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|)' >murge.theirs
-grep -B99999 '^||||' murge.X | egrep -v '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|)' >murge.ours
-grep -B99999 '^====' murge.X | grep -A99999 '^||||' | egrep -v '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|)'  >murge.common
+grep -A99999 '^====' murge.X | grep -Ev '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|)' >murge.theirs
+grep -B99999 '^||||' murge.X | grep -Ev '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|)' >murge.ours
+grep -B99999 '^====' murge.X | grep -A99999 '^||||' | grep -Ev '^(=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|)'  >murge.common
 
 colordiff -du $* murge.ours murge.theirs
 grep . murge.common > /dev/null && colordiff -du $* murge.common murge.theirs
diff --git a/tools/patcheck b/tools/patcheck
index 934e5b9451..ee310cdd07 100755
--- a/tools/patcheck
+++ b/tools/patcheck
@@ -9,7 +9,7 @@ if [ $# = 0 ]; then
 fi
 
 GREP=grep
-EGREP=egrep
+EGREP="$GREP -E"
 TMP=patcheck.tmp
 OPT="-nH"
 #FILES=$($GREP '^+++' $* | sed 's/+++ //g')
-- 
2.45.2

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

             reply	other threads:[~2024-07-18 14:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-18 14:48 Marcus B Spencer [this message]
2024-07-18 14:48 ` [FFmpeg-devel] [PATCH 2/2] tests/fate/libswresample: suggest users " Marcus B Spencer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240718144858.11834-1-marcus@marcusspencer.xyz \
    --to=marcus@marcusspencer.xyz \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git