On 2014-05-13 21:19, Charles Steinkuehler wrote:
> If you're starting from a comp file, why not just turn it into a C file:
>
> comp --preprocess my_file.comp
>
> ...edit as required and then compile/install:
>
> comp --install my_file.c
>
> Details:
> http://linuxcnc.org/docs/html/man/man1/comp.1.html
>
>

Additionaly I am suggesting a --debug option for comp to debug the make process 
etc.
With this option you can examine the generated meta files.
This code saved me a lot of time.

<code>
diff --git a/src/hal/utils/comp.g b/src/hal/utils/comp.g
index e628a91..cfb285e 100644
--- a/src/hal/utils/comp.g
+++ b/src/hal/utils/comp.g
@@ -926,7 +926,10 @@ def process(filename, mode, outfilename):
                 build_rt(tempdir, outfilename, mode, filename)
 
     finally:
-        shutil.rmtree(tempdir)
+         if debug:
+            print "tempdir: ", tempdir
+        else:
+            shutil.rmtree(tempdir)
 
 def usage(exitval=0):
     print """%(name)s: Build, compile, and install LinuxCNC HAL components
@@ -947,6 +950,7 @@ def main():
     mode = PREPROCESS
     outfile = None
     userspace = False
+    debug = False
     try:
         opts, args = getopt.getopt(sys.argv[1:], "luijcpdo:h?",
                            ['install', 'compile', 'preprocess', 'outfile=',
@@ -978,6 +982,8 @@ def main():
             if len(args) != 1:
                 raise SystemExit, "Cannot specify -o with multiple input files"
             outfile = v
+        if k in ("--debug"):
+            debug = True
         if k in ("-?", "-h", "--help"):
             usage(0)
 
</code>

Just a suggestion.

Matsche

-- 
"In der Wissenschaft siegt nie eine neue Theorie,
nur ihre Gegner sterben nach und nach"

Max Planck


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to