[ HOME --> SourcePublisher for C++ --> Automatic publishing ]
  Links:   Contact Information   Email Support   Email Sales


Publish your code, while you sleep...

Here is a sample script we use on Unix to automatically analyze one of the examples posted on this web site.

First it finds any new C/C++ files, then it parses the code, then it publishes the code (and information about it) using SourcePublisher. Everything you can do with the SourcePublisher GUI you can do from the command line.

An example use might be nightly analysis and publishing of source checkins. Put in a cron job so it happens automatically.


#!/bin/sh

# build list of files to analyze
find . -name “*.c” “*.h” > files.undc

#analyze them with the command line parser “undc”
undc -add @files.undc -create -db groff.udc -rebuild

#now publish analysis with SourcePublishers command line
sp_c -html ~/public_html/sp_examples/groff -clean \
    -publish ~/public_html/sp_examples/groff \
    -db groff.udc \
    -homePage README