Index: trunk/doc/user/08_util/01_gsch2pcb-rnd.htm =================================================================== --- trunk/doc/user/08_util/01_gsch2pcb-rnd.htm (revision 30663) +++ trunk/doc/user/08_util/01_gsch2pcb-rnd.htm (nonexistent) @@ -1,50 +0,0 @@ - - - - pcb-rnd user manual - - - - -

pcb-rnd - user manual

- -

2. Utilities

-

-

2.1. gsch2pcb-rnd

-

-Gsch2pcb-rnd is a standalone utility that can extract netlists and -element data from a schematics produced by gschem. Thus it is a glue -between gschem and pcb-rnd, doing forward annotation. It is ideal -for automating the design process as it can be easily called from -Makefiles, shell scripts or other programs/scripts, whereas the -"import schematics" feautre (import_sch plugin) is more geared for the -GUI user. -

-Multiple methods of operation are offered - the user can select -one of these by name, using the -m command line argument (e.g. -gsch2pcb-rnd -m importsep foo.sch): - - - - - -
method name - description -
import - Runs the same gnetlist backend as the import_sch plugin. A single - action command file generated with .cmd suffix. When executed - (using action ExcuteFile(foo.cmd)), it syncs (replaces/creates) - every element and sets up all nets. Pro: single-command import. - Con: can't load netlist only or elements only. -
importsep - Similar to import, but produces two files: a .cmd file with element - updates only (can be appled the same way as import's) and a - separate .net netlist file that can be imported the same way as the - .net of the pcb method. Pro: the user can update elements-only or - nets-only. Con: requires two user actions to get a full impoty. -
pcb - The classic approach that tried to edit the .pcb file. - No longer supported. -
- - Index: trunk/doc/user/08_util/install_cgi.html =================================================================== --- trunk/doc/user/08_util/install_cgi.html (revision 30663) +++ trunk/doc/user/08_util/install_cgi.html (nonexistent) @@ -1,50 +0,0 @@ - - - - pcb-rnd user manual - - - -

Installation of the footprint CGIs

-

system requirements, 3rd party software

- The following software needs to be installed on the system - that will host the scripts: - - -

Installation

-Since the CGIs are just demo scripts for repo.hu and are not really installed -anywhere else normally, there is no install script but a manual installation -process. For both the parametric and the static footprint CGI: -
    -
  1. check out pcb-rnd/trunk in a directory readable (but not writable) by www-data (or whatever user the CGI will run with) -
  2. copy the config file pcblib.cgi.conf from pcb-rnd/trunk/util to /etc -
  3. edit the config file; ignore setting sdir for now -
  4. hardlink, copy, or wrap the cgi files from under pcb-rnd/trunk/util into the web server's CGI directory -
-

-For the static footprint CGI (set up the map cache): -

    -
  1. cd to trunk/util/pcblib-map in the checkout and run make - NOTE: some awk scripts have hardwired CGI paths yet (TODO) -
  2. copy this directory to a web-accessible directory -
  3. set sdir to the absolute path of the web-accessible copy in /etc/pcblib.cgi.conf -
- -

Tips and tricks

-

cgi wrapping

-Making the checkout directly into the cgi-bin dir is not a good idea. Using -a hard link on each CGI between the checkout and the cgi-bin dir is better, -but an svn up will silently break the link leaving the old version live. -The most stable solution is placing a wrapper script in the cgi-bin dir: -
-#!/bin/bash
-. /full/path/to/the/checkout/util/pcblib-param.cgi
-
- - Index: trunk/doc/user/08_util/01_gsch2pcb-rnd.html =================================================================== --- trunk/doc/user/08_util/01_gsch2pcb-rnd.html (nonexistent) +++ trunk/doc/user/08_util/01_gsch2pcb-rnd.html (revision 30664) @@ -0,0 +1,48 @@ + + + + pcb-rnd user manual + + + + +

pcb-rnd - user manual

+ +

8.1. gsch2pcb-rnd

+

+Gsch2pcb-rnd is a standalone utility that can extract netlists and +element data from a schematics produced by gschem. Thus it is a glue +between gschem and pcb-rnd, doing forward annotation. It is ideal +for automating the design process as it can be easily called from +Makefiles, shell scripts or other programs/scripts, whereas the +"import schematics" feautre (import_sch plugin) is more geared for the +GUI user. +

+Multiple methods of operation are offered - the user can select +one of these by name, using the -m command line argument (e.g. +gsch2pcb-rnd -m importsep foo.sch): + + + + + +
method name + description +
import + Runs the same gnetlist backend as the import_sch plugin. A single + action command file generated with .cmd suffix. When executed + (using action ExcuteFile(foo.cmd)), it syncs (replaces/creates) + every element and sets up all nets. Pro: single-command import. + Con: can't load netlist only or elements only. +
importsep + Similar to import, but produces two files: a .cmd file with element + updates only (can be appled the same way as import's) and a + separate .net netlist file that can be imported the same way as the + .net of the pcb method. Pro: the user can update elements-only or + nets-only. Con: requires two user actions to get a full impoty. +
pcb + The classic approach that tried to edit the .pcb file. + No longer supported. +
+ + Index: trunk/doc/user/08_util/02_cgi.html =================================================================== --- trunk/doc/user/08_util/02_cgi.html (nonexistent) +++ trunk/doc/user/08_util/02_cgi.html (revision 30664) @@ -0,0 +1,53 @@ + + + + pcb-rnd user manual + + + + +

pcb-rnd - user manual

+ +

8.2. Installation of the footprint CGIs

+

8.2.1. system requirements, 3rd party software

+ The following software needs to be installed on the system + that will host the scripts: + + +

8.2.2. Installation

+Since the CGIs are just demo scripts for repo.hu and are not really installed +anywhere else normally, there is no install script but a manual installation +process. For both the parametric and the static footprint CGI: +
    +
  1. check out pcb-rnd/trunk in a directory readable (but not writable) by www-data (or whatever user the CGI will run with) +
  2. copy the config file pcblib.cgi.conf from pcb-rnd/trunk/util to /etc +
  3. edit the config file; ignore setting sdir for now +
  4. hardlink, copy, or wrap the cgi files from under pcb-rnd/trunk/util into the web server's CGI directory +
+

+For the static footprint CGI (set up the map cache): +

    +
  1. cd to trunk/util/pcblib-map in the checkout and run make - NOTE: some awk scripts have hardwired CGI paths yet (TODO) +
  2. copy this directory to a web-accessible directory +
  3. set sdir to the absolute path of the web-accessible copy in /etc/pcblib.cgi.conf +
+ +

8.2.3. Tips and tricks

+

8.2.3.1. cgi wrapping

+Making the checkout directly into the cgi-bin dir is not a good idea. Using +a hard link on each CGI between the checkout and the cgi-bin dir is better, +but an svn up will silently break the link leaving the old version live. +The most stable solution is placing a wrapper script in the cgi-bin dir: +
+#!/bin/bash
+. /full/path/to/the/checkout/util/pcblib-param.cgi
+
+ +