Last change
on this file since 69 was
69,
checked in by bradbell, 11 years ago
|
[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.
|
-
Property svn:executable set to
*
|
File size:
1.5 KB
|
Rev | Line | |
---|
[61] | 1 | #! /bin/sh |
---|
| 2 | # ------------------------------------------------------------------- |
---|
| 3 | # ckbs: Constrained Kalman-Bucy Smoother Program: Copyright (C) 2006 |
---|
| 4 | # Authors: Bradlely Bell: bradbell at washington dot edu |
---|
| 5 | # Gianluigi Pillonetto: giapi at dei dot unipd dot it |
---|
| 6 | # License: GNU General Public License Version 2 |
---|
| 7 | # ------------------------------------------------------------------- |
---|
| 8 | # |
---|
| 9 | count=`ls | grep omhelp- | wc -w` |
---|
| 10 | if [ "$count" = 1 ] |
---|
| 11 | then |
---|
| 12 | dir=`ls | grep omhelp-` |
---|
| 13 | else |
---|
| 14 | dir="do_not_use_current_omhelp_directory" |
---|
| 15 | fi |
---|
| 16 | if [ ! -e $dir/src/omhelp ] |
---|
| 17 | then |
---|
| 18 | if [ ! -e OMhelp.unix.tar.gz ] |
---|
| 19 | then |
---|
| 20 | web_page="http://www.seanet.com/~bradbell" |
---|
| 21 | echo "wget $web_page/OMhelp.unix.tar.gz" |
---|
| 22 | wget "$web_page/OMhelp.unix.tar.gz" |
---|
| 23 | fi |
---|
| 24 | if [ -e "omhelp-*" ] |
---|
| 25 | then |
---|
| 26 | echo "rm -rf omhelp-*" |
---|
| 27 | rm -rf omhelp-* |
---|
| 28 | fi |
---|
| 29 | echo "tar -xvzf OMhelp.unix.tar.gz" |
---|
| 30 | tar -xvzf OMhelp.unix.tar.gz |
---|
| 31 | # |
---|
| 32 | echo "cd omhelp-*" |
---|
| 33 | cd omhelp-* |
---|
| 34 | # |
---|
| 35 | echo "./configure --prefix=$HOME" |
---|
| 36 | ./configure --prefix=$HOME |
---|
| 37 | # |
---|
| 38 | echo "make" |
---|
| 39 | make |
---|
| 40 | # |
---|
| 41 | echo "cd .." |
---|
| 42 | cd .. |
---|
| 43 | fi |
---|
[69] | 44 | if [ ! -e doc ] |
---|
[61] | 45 | then |
---|
[69] | 46 | echo "mkdir doc" |
---|
| 47 | mkdir doc |
---|
[61] | 48 | fi |
---|
| 49 | # |
---|
| 50 | echo "cd doc" |
---|
| 51 | cd doc |
---|
| 52 | # |
---|
| 53 | # build the documentation |
---|
[69] | 54 | cmd="../$dir/src/omhelp" |
---|
| 55 | log="../omhelp.log" |
---|
[61] | 56 | for arg1 in "" -xml |
---|
| 57 | do |
---|
| 58 | for arg2 in -noframe -printable |
---|
| 59 | do |
---|
[69] | 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 |
---|
[61] | 71 | done |
---|
| 72 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.