mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 00:51:19 +00:00
cc8a2b84be
- Helps to identify some bugs at compile time - Useful for git grep and understand the usage of the functions - Improve readability - Fix memleak introduced in previous anal/var pr - Help to find unnecessary null checks and start to use r_assert - Deprecate R_TRUFAE R_TRUE R_FALSE and R_ERROR - Add r2api script to ease system-wide git grep for r2 devs - Use more R_OWN and r_return_val_if_fail
15 lines
296 B
Bash
Executable File
15 lines
296 B
Bash
Executable File
#!/bin/sh
|
|
cd $HOME/prg/radare2
|
|
IFS=:
|
|
for a in $PATH ; do
|
|
if [ -x "$a/radare2" ]; then
|
|
D=$(dirname `readlink /usr/local/bin/radare2`)
|
|
cd "$D/../.."
|
|
if [ -d libr/include ]; then
|
|
git grep "$1" libr/include | grep -v '#include' | less -p "$1" -R
|
|
exit 0
|
|
fi
|
|
fi
|
|
done
|
|
echo "Cant find r2"
|