Ignore:
Timestamp:
Feb 28, 2010 8:55:40 AM (11 years ago)
Author:
bradbell
Message:

[ckbs/trunk] Improve helper shell scripts.

svn_status.sh: remove some more work files from svn status list.
whatsnew.omh: fix cross reference link to ckbs (which changed).
ckbs.omh: Change download instrutions so will work with Coin automation.
copy_doc.sh: automatically bring ckbs web documentation up to date.
new_stable.sh: script to help create a new stable version.
build_doc.sh: exit if warnings or errors occur in documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • projects/ckbs/trunk/build_doc.sh

    r61 r69  
    4242        cd ..
    4343fi
    44 if [ -d doc ]
     44if [ ! -e doc ]
    4545then
    46         echo "rm -r doc"
    47         rm -r doc
     46        echo "mkdir doc"
     47        mkdir doc
    4848fi
    49 echo "mkdir doc"
    50 mkdir doc
    5149#
    5250echo "cd doc"
     
    5452#
    5553# build the documentation
     54cmd="../$dir/src/omhelp"
     55log="../omhelp.log"
    5656for arg1 in "" -xml
    5757do
    5858        for arg2 in -noframe -printable
    5959        do
    60                 echo "../$dir/src/omhelp ../omh/ckbs.omh $arg1 $arg2 -debug"
    61                 ../$dir/src/omhelp ../omh/ckbs.omh $arg1 $arg2 -debug
     60                echo "omhelp omh/ckbs.omh $arg1 $arg2 -debug >& omhelp.log"
     61                if ! $cmd ../omh/ckbs.omh $arg1 $arg2 -debug >& ../omhelp.log
     62                then
     63                        echo "build_doc.sh: omhelp error, see omhelp.log"
     64                        exit 1
     65                fi
     66                if grep "^OMhelp Warning:" ../omhelp.log
     67                then
     68                        echo "build_doc.sh: omhelp warning, see omhelp.log"
     69                        exit 1
     70                fi
    6271        done
    6372done
Note: See TracChangeset for help on using the changeset viewer.