Kunden-/Lieferantenstammdaten: Beim Ansprechpartner steht in der Drop-Down-Box oben...
[kivitendo-erp.git] / scripts / create_tags_file.pl
1 #!/usr/bin/perl
2 #
3 ########################################################
4 #
5 # This script creates a 'tags' file in the style of ctags
6 # out of the SL/ modules.
7 # Tags file is usable in some editors (vim, joe, emacs, ...). 
8 # See your editors documentation for more information.
9 #
10 # (c) Udo Spallek, Aachen
11 # Licenced under GNU/GPL.
12 #
13 ########################################################
14
15 use Perl::Tags;
16 use IO::Dir;
17 use Data::Dumper;
18
19 use strict;
20 use warnings FATAL =>'all';
21 use diagnostics;
22
23 my $dir = IO::Dir->new("SL/");
24
25 my @files = grep {/\.pm$/} $dir->read();
26
27 @files = grep { s{^}{SL\/}gxms } @files;
28
29 #print Dumper(@files);
30
31 #__END__
32 my $naive_tagger = Perl::Tags::Naive->new( max_level=>1 );
33 $naive_tagger->process(
34          files => [@files],
35          refresh=>1 
36 );
37
38 my $tagsfile="tags";
39
40 # of course, it may not even output, for example, if there's nothing new to process
41 $naive_tagger->output( outfile => $tagsfile );
42
43
44 1;