black magic to edit Mason.pm as well
[freeside.git] / bin / generate-table-module
index 509feed..7635962 100755 (executable)
@@ -66,6 +66,13 @@ 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
 ###