diff options
Diffstat (limited to 'source/a/grep')
-rwxr-xr-x | source/a/grep/grep.SlackBuild | 9 | ||||
-rw-r--r-- | source/a/grep/scripts/egrep | 4 | ||||
-rw-r--r-- | source/a/grep/scripts/fgrep | 4 |
3 files changed, 15 insertions, 2 deletions
diff --git a/source/a/grep/grep.SlackBuild b/source/a/grep/grep.SlackBuild index 541ffc3ff..b1cb9b460 100755 --- a/source/a/grep/grep.SlackBuild +++ b/source/a/grep/grep.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=grep VERSION=${VERSION:-$(echo $PKGNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -95,11 +95,16 @@ make install DESTDIR=$PKG || exit 1 find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +# Replace the fgrep/egrep scripts with less annoying versions: +cat $CWD/scripts/fgrep > $PKG/bin/fgrep +cat $CWD/scripts/egrep > $PKG/bin/egrep +chmod 755 $PKG/bin/?grep + # Make symlinks in /usr/bin: mkdir -p $PKG/usr/bin ( cd $PKG/usr/bin ln -sf ../../bin/grep . - ln -sf ../../bin/grep -E . + ln -sf ../../bin/egrep . ln -sf ../../bin/fgrep . ) diff --git a/source/a/grep/scripts/egrep b/source/a/grep/scripts/egrep new file mode 100644 index 000000000..513835a72 --- /dev/null +++ b/source/a/grep/scripts/egrep @@ -0,0 +1,4 @@ +#!/bin/sh +#cmd=${0##*/} +#echo "$cmd: warning: $cmd is obsolescent; using grep -E" >&2 +exec grep -E "$@" diff --git a/source/a/grep/scripts/fgrep b/source/a/grep/scripts/fgrep new file mode 100644 index 000000000..e8c4df9a1 --- /dev/null +++ b/source/a/grep/scripts/fgrep @@ -0,0 +1,4 @@ +#!/bin/sh +#cmd=${0##*/} +#echo "$cmd: warning: $cmd is obsolescent; using grep -F" >&2 +exec grep -F "$@" |