Files
vim-cocoa.vim-mirror/lib/get_methods.sh
Jason Foreman a5eaf14edc Make paths relative to scripts.
This allows the plugin to live in a directory other than ~/.vim.  This
useful when used with something like pathogen, where the plugin lives
in ~/.vim/bundle/cocoa or similar subpath.
2010-01-25 19:57:18 -06:00

5 lines
188 B
Bash
Executable File

dir=`dirname $0`
classes=`grep -m 1 ^$1 ${dir}/cocoa_indexes/classes.txt`
if [ -z "$classes" ]; then exit; fi
zgrep "^\($classes\)" ${dir}/cocoa_indexes/methods.txt.gz | sed 's/^[^ ]* //'