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)
@@ -65,6 +65,13 @@ while (my $line = <SRC>) {
 close SRC;
 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
 ###