From df2f4b1252f1601c10649d3048c5e76a91f1132e Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Fri, 16 Jul 2021 15:33:18 -0400 Subject: [PATCH] ugrep: make more compatible --- core/ugrep/build | 7 ++++--- core/ugrep/checksums | 5 +++-- core/ugrep/files/egrep | 2 +- core/ugrep/files/fgrep | 2 +- core/ugrep/files/grep | 3 +++ core/ugrep/sources | 3 ++- core/ugrep/version | 2 +- 7 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 core/ugrep/files/grep diff --git a/core/ugrep/build b/core/ugrep/build index 4995425..5a77b7a 100755 --- a/core/ugrep/build +++ b/core/ugrep/build @@ -8,7 +8,8 @@ make make DESTDIR="$1" install -ln -s /usr/bin/ugrep "$1/usr/bin/grep" ln -s /usr/share/man/man1/ugrep.1 "$1/usr/share/man/man1/grep.1" -install -Dm755 fgrep "$1/usr/bin/fgrep" -install -Dm755 egrep "$1/usr/bin/egrep" + +for i in grep fgrep egrep; do + install -Dm755 "$i" "$1/usr/bin/$i" +done diff --git a/core/ugrep/checksums b/core/ugrep/checksums index c287ced..9ca7d6b 100644 --- a/core/ugrep/checksums +++ b/core/ugrep/checksums @@ -1,3 +1,4 @@ b5eca59aa67020052e5f796dfaddc1cb30ee9dd6e4cd89fb5cde1e3f110584ff -f5490817fc1d9710e1d4db72e5587768c7a2308678ba106be4061e8e3e4da3f2 -658e6bbf4ef150e92e4bbf400fa44691e3064413a27492e0175044a831dba315 +d867e90a7fcdf4b1204dd9ef1110fef912c01bbc4704b790a740d6d7477a4600 +dd3e6f6ddc258b1dc1133bb9e0d1cafe088e309e4bf1465e9fb255f431f2985b +0c35b018adbba13a3c848c5fe79d6718017b6b7385a5323429ab3673fdcc4fa9 diff --git a/core/ugrep/files/egrep b/core/ugrep/files/egrep index 6712c41..13df85b 100644 --- a/core/ugrep/files/egrep +++ b/core/ugrep/files/egrep @@ -1,3 +1,3 @@ #!/usr/bin/sh -e -grep -E $@ +ugrep --sort -E -U -Y -. -Dread -dread $@ diff --git a/core/ugrep/files/fgrep b/core/ugrep/files/fgrep index e5ca232..01299a5 100644 --- a/core/ugrep/files/fgrep +++ b/core/ugrep/files/fgrep @@ -1,3 +1,3 @@ #!/usr/bin/sh -e -grep -F $@ +ugrep --sort -F -U -Y -. -Dread -dread diff --git a/core/ugrep/files/grep b/core/ugrep/files/grep new file mode 100644 index 0000000..390cb81 --- /dev/null +++ b/core/ugrep/files/grep @@ -0,0 +1,3 @@ +#!/usr/bin/sh -e + +ugrep --sort -G -U -Y -. -Dread -dread $@ diff --git a/core/ugrep/sources b/core/ugrep/sources index 6ce4050..79e6a3b 100644 --- a/core/ugrep/sources +++ b/core/ugrep/sources @@ -1,3 +1,4 @@ https://github.com/Genivia/ugrep/archive/refs/tags/v3.3.4.tar.gz -files/fgrep +files/grep files/egrep +files/fgrep diff --git a/core/ugrep/version b/core/ugrep/version index 0137b78..96f2b39 100644 --- a/core/ugrep/version +++ b/core/ugrep/version @@ -1,2 +1,2 @@ -3.3.4 3 +3.3.4 4 -- 2.39.2