]> mj.ucw.cz Git - moe.git/commitdiff
Templater: Templates for stdio tasks
authorMartin Mares <mj@ucw.cz>
Thu, 27 Mar 2014 18:07:41 +0000 (19:07 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 27 Mar 2014 18:07:41 +0000 (19:07 +0100)
Temporary hack for MO 2014

mop/project/templater.pl
mop/project/templater/template-c.cbp
mop/project/templater/template-cpp.cbp
mop/project/templater/template-pas.lpi

index e9a500c602cb845264823e1e19d815541ea3f4db..bd48da18c0e722db51a2fb493c4860501db546d3 100755 (executable)
@@ -18,20 +18,15 @@ sub create_template($$$$) {
                "$where/template-c.cbp" => "$task.cbp",
                "$where/template.layout" => "$task.layout",
                "$taskdir/$task/$task.c" => "$task.c",
-               "$taskdir/$task/$task-main.c" => "$task-main.c",
-               "$taskdir/$task/$task.h" => "$task.h",
        },
        cpp => {
                "$where/template-cpp.cbp" => "$task.cbp",
                "$where/template.layout" => "$task.layout",
                "$taskdir/$task/$task.cpp" => "$task.cpp",
-               "$taskdir/$task/$task-main.cpp" => "$task-main.cpp",
-               "$taskdir/$task/$task.h" => "$task.h",
        },
        pas => {
                "$where/template-pas.lpi" => "${task}_main.lpi",
                "$taskdir/$task/$task.pas" => "$task.pas",
-               "$taskdir/$task/${task}_main.pas" => "${task}_main.lpr",
        }
     );
     my $files = $files{$ext} // die "Unknown ext $ext\n";
index 08f7b7f1112bcbd40abcac122ee9a439cdce7244..5fe4fbfcb4726ff41ff7565bc5f7344375548f78 100644 (file)
                <Linker>
                        <Add option="-lm" />
                </Linker>
-               <Unit filename="tASk-main.c">
-                       <Option compilerVar="CC" />
-               </Unit>
                <Unit filename="tASk.c">
                        <Option compilerVar="CC" />
                </Unit>
-               <Unit filename="tASk.h" />
                <Extensions>
                        <envvars />
                        <code_completion />
index 3dab2e10c51c190455a45cf83d95f4a2dba91bcf..51dd58f8b2af75a6ea679c5b5b42a5055f2cd07b 100644 (file)
                <Linker>
                        <Add option="-lm" />
                </Linker>
-               <Unit filename="tASk-main.cpp">
-                       <Option compilerVar="CPP" />
-               </Unit>
                <Unit filename="tASk.cpp">
                        <Option compilerVar="CPP" />
                </Unit>
-               <Unit filename="tASk.h" />
                <Extensions>
                        <envvars />
                        <code_completion />
index d4ba0af452ac7f32ce1194ef45795db210d3ebd4..72168b3a4bbbd907fa7eb09f8e827de5234ce9af 100644 (file)
         <PackageName Value="LCL"/>
       </Item1>
     </RequiredPackages>
-    <Units Count="2">
+    <Units Count="1">
       <Unit0>
-        <Filename Value="tASk_main.lpr"/>
-        <IsPartOfProject Value="True"/>
-        <UnitName Value="tASk_main"/>
-      </Unit0>
-      <Unit1>
         <Filename Value="tASk.pas"/>
         <IsPartOfProject Value="True"/>
         <ComponentName Value="Form1"/>
         <ResourceBaseClass Value="Form"/>
         <UnitName Value="tASk"/>
-      </Unit1>
+      </Unit0>
     </Units>
   </ProjectOptions>
   <CompilerOptions>