repo.or.cz
/
oi-userland.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
python/hypothesis: update to 6.121.0
[oi-userland.git]
/
components
/
text
/
ggrep
/
files
/
efgrep
blob
fe21e5cbe285b2836c3de6dd50f03b5c0ef3fc3a
1
#!/bin/sh
2
3
REALPATH
=
`realpath "
$0
"`
4
DIRNAME
=
`dirname "
$REALPATH
"`
5
BASENAME
=
`basename "
$0
"`
6
7
case
$BASENAME
in
8
gegrep|
egrep
)
9
SWITCH
=
"-E"
;;
10
gfgrep|fgrep
)
11
SWITCH
=
"-F"
;;
12
*)
13
printf
"Should be called egrep or fgrep!
\n
"
1
>&
2
14
exit
1
15
;;
16
esac
17
18
case
$DIRNAME
in
19
*/
amd64
)
20
GREP
=/
usr
/
gnu
/
bin
/
amd64
/
grep
;;
21
*)
22
GREP
=/
usr
/
gnu
/
bin
/
grep
;;
23
esac
24
exec
$GREP $SWITCH
"$@"