Grep the code ? how to ?

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Money_YaY!
Posts: 442
Joined: Wed Oct 23, 2002 2:47 pm

Grep the code ? how to ?

Post by Money_YaY! » Thu Aug 03, 2006 5:05 pm

I know basics of grep regex but I have only used it to destroy files to remove crap ..

How do I use it to digg through source ? As I have been told to use it before.. Say I want to find what opengl drawtype the lamps are giving off in the 3d view.. What kinda way would I use grep to seek out the details of this source?

Is it via terminal? Or in a text editor? On OSX but we have lots of unix stuff and regex tools but no emacs please.. i am not THAT comand line savy

SirDude
Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Post by SirDude » Thu Aug 03, 2006 5:27 pm

in a terminal you cd to your blender root directory
then use grep -r "string" *

to look for the word string.

The following documentation is a bit old but teaches you how
to find things in the blender code base....


http://www.blender3d.org/cms/Adding_com ... 184.0.html

Post Reply