[Fai-commit] r4643 - people/eartoast/addons/class-reference

glaweh-guest at alioth.debian.org glaweh-guest at alioth.debian.org
Sat Oct 20 16:51:03 UTC 2007


Author: glaweh-guest
Date: 2007-10-20 16:51:02 +0000 (Sat, 20 Oct 2007)
New Revision: 4643

Modified:
   people/eartoast/addons/class-reference/fai-classes-config
Log:
simple two-column output.


Modified: people/eartoast/addons/class-reference/fai-classes-config
===================================================================
--- people/eartoast/addons/class-reference/fai-classes-config	2007-10-20 12:04:39 UTC (rev 4642)
+++ people/eartoast/addons/class-reference/fai-classes-config	2007-10-20 16:51:02 UTC (rev 4643)
@@ -3,9 +3,7 @@
 #     run this script in the FAI config topdir
 #     it extracts all references to classes and prints them on stdout
 #     Format:
-#       class: $classname
-#         $filename[:linenumber]
-#         ...
+#       $classname $filename[:linenumber]
 
 use strict;
 use Getopt::Std;
@@ -272,9 +270,8 @@
 # print the classes and the places referencing them to stdout (alphanum sorted)
 sub dump_class_refs {
 	foreach my $class (sort keys %config_classes) {
-		print "class: $class\n";
 		foreach my $file (sort @{$config_classes{$class}}) {
-			print "  $file\n";
+			print "$class  $file\n";
 		}
 	}
 }




More information about the Fai-commit mailing list