python/hypothesis: update to 6.121.0
[oi-userland.git] / components / text / ggrep / files / efgrep
blobfe21e5cbe285b2836c3de6dd50f03b5c0ef3fc3a
1 #!/bin/sh
3 REALPATH=`realpath "$0"`
4 DIRNAME=`dirname "$REALPATH"`
5 BASENAME=`basename "$0"`
7 case $BASENAME in
8 gegrep|egrep)
9 SWITCH="-E";;
10 gfgrep|fgrep)
11 SWITCH="-F";;
13 printf "Should be called egrep or fgrep!\n" 1>&2
14 exit 1
16 esac
18 case $DIRNAME in
19 */amd64)
20 GREP=/usr/gnu/bin/amd64/grep;;
22 GREP=/usr/gnu/bin/grep;;
23 esac
24 exec $GREP $SWITCH "$@"