[Gtkradiant] Doxygen for the plugins

Geoff Davis gtkradiant@zerowing.idsoftware.com
Mon, 3 Dec 2001 10:54:14 +1100


This is a multi-part message in MIME format.

--Multipart_Mon__3_Dec_2001_10:54:14_+1100_082c94c8
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Howdy,

Here's an update to gendox & doxygen cleanups of other running processes.
It works by using a wait for doxygen processes in the gendox script that
spawned it, and trapping signal 3's (SIGQUIT). If the gendox script receives
a sig 3, it kills its doxygen child process.

The check for other running processes, checks the command line that called
the other gendox script by looking in /proc/<gendox pids>/cmdline and kills
gendox processes with the same command line using sig 3.

This is under the assumption that the branch name is included in the command
line to specify the output dir, therefore new processes that specify the same
output dir are treated as duplicate processes... Or something like that anyway ;]

Gef :]

On Thu, 29 Nov 2001 09:21:04 +0100
Timothee Besset <timo@qeradiant.com> wrote:

> You're right, it's easier to add the plugins/ directory directly to the
> default generation. If we end up with 7-8 doxygen generations per branch
> (core+plugins each time) it's not gonna be very easy to navigate.
> 
> TTimo
> 

--
The part of the world that people find most puzzling is the part called "Me".

--Multipart_Mon__3_Dec_2001_10:54:14_+1100_082c94c8
Content-Type: application/octet-stream;
 name="doxygen_killproc.patch"
Content-Disposition: attachment;
 filename="doxygen_killproc.patch"
Content-Transfer-Encoding: base64

ZGlmZiAtUE5hdXIgR3RrUmFkaWFudC9Eb3h5Z2VuX2ZpbGVzL2dlbmRveGZ1bmN0aW9ucyB3b3Jr
aW5nL0RveHlnZW5fZmlsZXMvZ2VuZG94ZnVuY3Rpb25zCi0tLSBHdGtSYWRpYW50L0RveHlnZW5f
ZmlsZXMvZ2VuZG94ZnVuY3Rpb25zCU1vbiBEZWMgIDMgMTA6NDM6MjEgMjAwMQorKysgd29ya2lu
Zy9Eb3h5Z2VuX2ZpbGVzL2dlbmRveGZ1bmN0aW9ucwlTYXQgRGVjICAxIDA2OjA5OjQxIDIwMDEK
QEAgLTgwLDYgKzgwLDMzIEBACiAJCiB9CiAKK2tpbGxf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