Difference between revisions of "Common mca2 scripts"

From Mca2
Jump to navigationJump to search
 
(copied parts of docbook chapter on coding standards)
Line 2: Line 2:
  
 
== create file templates ==
 
== create file templates ==
*newClass
+
* newPart
*newModule
+
{{cmd|[~]$ newPart base_path name}}
*newGroup
+
Creates a new part. The .C file is created with the given name in the $MCAHOME/base_path/src subdirectory. A 'p' is automatically prepended. No header file is generated.
*newPart
 
  
empty templates are in etc/Null...
+
 
 +
*newGroup
 +
{{cmd|[~]$ newGroup base_path name}}
 +
Creates a new group. Parameters are evalulated like in the newPart script. A 'g' is automatically prepended to the given name. Additional to the .C file, a header file is created in $MCAHOME/base_path/include.
 +
 
 +
 
 +
* newModule
 +
{{cmd|[~]$ newModule base_path name}}
 +
Creates a new module. A 'm' is automatically prepended to the given name. Both .C and .h files are created.
 +
 
 +
 
 +
*newClass
 +
{{cmd|[~]$ newClass base_path name}}
 +
Creates a new class. A 't' is automatically prepended to the given name. Both .C and .h files are created.
 +
 
 +
 
 +
*newStaticClass
 +
{{cmd|[~]$ newStaticClass base_path name}}
 +
Creates a new static class. A 's' is automatically prepended to the given name. Both .C and .h files are created.
 +
 
 +
empty templates for these scripts are in etc/Null...
  
 
== create a new release ==
 
== create a new release ==

Revision as of 11:18, 9 January 2006

TODO: up to now just a list of used scripts

create file templates

  • newPart

1WL7MC <a href="http://rddwwwriwqtq.com/">rddwwwriwqtq</a>, [url=http://idouoyjldvmp.com/]idouoyjldvmp[/url], [link=http://dargpwnxgfhj.com/]dargpwnxgfhj[/link], http://xvqtajeodrzp.com/ Creates a new part. The .C file is created with the given name in the $MCAHOME/base_path/src subdirectory. A 'p' is automatically prepended. No header file is generated.


  • newGroup

1WL7MC <a href="http://rddwwwriwqtq.com/">rddwwwriwqtq</a>, [url=http://idouoyjldvmp.com/]idouoyjldvmp[/url], [link=http://dargpwnxgfhj.com/]dargpwnxgfhj[/link], http://xvqtajeodrzp.com/ Creates a new group. Parameters are evalulated like in the newPart script. A 'g' is automatically prepended to the given name. Additional to the .C file, a header file is created in $MCAHOME/base_path/include.


  • newModule

1WL7MC <a href="http://rddwwwriwqtq.com/">rddwwwriwqtq</a>, [url=http://idouoyjldvmp.com/]idouoyjldvmp[/url], [link=http://dargpwnxgfhj.com/]dargpwnxgfhj[/link], http://xvqtajeodrzp.com/ Creates a new module. A 'm' is automatically prepended to the given name. Both .C and .h files are created.


  • newClass

1WL7MC <a href="http://rddwwwriwqtq.com/">rddwwwriwqtq</a>, [url=http://idouoyjldvmp.com/]idouoyjldvmp[/url], [link=http://dargpwnxgfhj.com/]dargpwnxgfhj[/link], http://xvqtajeodrzp.com/ Creates a new class. A 't' is automatically prepended to the given name. Both .C and .h files are created.


  • newStaticClass

1WL7MC <a href="http://rddwwwriwqtq.com/">rddwwwriwqtq</a>, [url=http://idouoyjldvmp.com/]idouoyjldvmp[/url], [link=http://dargpwnxgfhj.com/]dargpwnxgfhj[/link], http://xvqtajeodrzp.com/ Creates a new static class. A 's' is automatically prepended to the given name. Both .C and .h files are created.

empty templates for these scripts are in etc/Null...

create a new release

  • make-release
  • test-release

transfer files to a second host

  • synchronize.py
  • sync.py

set environment vairables

  • mcasetenv.bat (Windows only)
  • mcasetenv (bash script)
  • mcasetenv.py (phyton script used by mcasetenv)