black magic to edit Mason.pm as well
authorjeff <jeff>
Fri, 17 Jul 2009 01:08:59 +0000 (01:08 +0000)
committerjeff <jeff>
Fri, 17 Jul 2009 01:08:59 +0000 (01:08 +0000)
bin/generate-table-module

index 509feed..7635962 100755 (executable)
@@ -66,6 +66,13 @@ close SRC;
 close DEST;
 
 ###
 close DEST;
 
 ###
+# add to FS/FS/Mason.pm
+###
+
+my $magic = '# Sammath Naur';
+system("perl -pi -e 's/$magic/use FS::$table;\n  $magic/' FS/FS/Mason.pm");
+
+###
 # add FS/t/table.t
 ###
 
 # add FS/t/table.t
 ###