]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/mkcommandlist.pl
A4STATS: remove E style escapes and switch to createtable for indices
[irc/quakenet/newserv.git] / chanserv / mkcommandlist.pl
index 1de88fc21a87deea1b1792b33f101d79b4aed009..00f6bde6133d87559c83bc612f747cecaffb97d0 100755 (executable)
@@ -25,6 +25,13 @@ unless (@ARGV) {
   $modname=$ARGV[0];
 }
 
+my $rootpath;
+if($#ARGV >= 1) {
+  $rootpath=$ARGV[1];
+} else {
+  $rootpath="..";
+}
+
 my $smallname;
 $smallname=$modname;
 $smallname=~s/\.so$//;
@@ -109,7 +116,7 @@ if (@files < 1) {
 open CL, ">commandlist.c";
 
 print CL "/* Automatically generated by mkcommandlist.pl, do not edit. */\n\n";
-print CL "#include \"../chanserv.h\"\n\n";
+print CL "#include \"".$rootpath."/chanserv.h\"\n\n";
 
 # Print prototypes
 print CL "/* Prototypes */\n";
@@ -182,7 +189,7 @@ print CL "}\n";
 
 close CL;
 
-open MF,">autobuild.mk";
+open MF,">.autobuild.mk";
 
 print MF "# Automatically generated Makefile, do not edit.\n";