[lively-kernel] [ANN} Codebase-utilities

Keith P. Hodges keith_hodges at yahoo.co.uk
Sat Oct 29 23:26:15 CEST 2011


I started a little project of my own, my first "product" is a utility for scanning the lively codebase (written in ruby)

To download:

bzr branch lp:~livelytalkers/lively/codebase-utils/

or there is a zip file available for download at:

https://launchpad.net/lively

==========
Scans all files below the "target" with the defined objective , [ output in yaml ]

modules - looks for module( X )
requires - looks for requires( X, Y , Z )
reqs - looks for reqs = [ X, Y, Z ]
fix - loos for // FIX
url - looks for urls

==========

if anyone has any other suggestions that would be useful just let me know.

enjoy

Keith

Usage eaxmples:

=
#> ./scan-refs.rb --target ../../webwerkstatt-core/lively --modules --yaml 
--- 
../../webwerkstatt-core/lively/NewMorphicCompat.js: 
- lively.NewMorphicCompat
- lively.morphic
../../webwerkstatt-core/lively/morphic/tests/Morphic2.js: 
- lively.morphic.tests.Morphic2
../../webwerkstatt-core/lively/AST/Parser.js: 
- lively.AST.Parser
../../webwerkstatt-core/lively/bindings/Core.js: 
- lively.bindings.Core
etc etc...

./scan-refs.rb --target ../../webwerkstatt-core/lively --requires --yaml 
--- 
../../webwerkstatt-core/lively/AST/Parser.js: 
- lively.Ometa
- lively.AST.generated.Translator
- lively.AST.generated.Nodes
- lively.AST.Interpreter
- lively.AST.LivelyJSParser
../../webwerkstatt-core/lively/morphic/Rendering.js: 
- lively.morphic.Core
- lively.morphic.TextCore
- lively.morphic.Shapes

./scan-refs.rb --target ../../webwerkstatt-core/lively --reqs --yaml  
--- 
../../webwerkstatt-core/lively/NewMorphicCompat.js: 
- lively.Core
../../webwerkstatt-core/lively/persistence/StandAlonePackaging.js: 
- lively.PartsBin
../../webwerkstatt-core/lively/ide/VersionTools.js: 
- lively.Widgets
etc etc...





More information about the lively-kernel mailing list