source: projects/ckbs/trunk/build_doc.sh @ 77

Last change on this file since 77 was 77, checked in by bradbell, 11 years ago

[ckbs/trunk] Move ckbs.omh so file names are releative to trunk directory.

ckbs.omh: move to trunk directory.
ckbs.omh: move from omh subdirectory, OMhelp path commands no longer needed.
copy_doc.sh: change omh/ckbs.omh to ckbs.omh.
new_stable.sh: change omh/ckbs.omh to ckbs.omh.
build_doc.sh: change omh/ckbs.omh to ckbs.omh.

  • Property svn:executable set to *
File size: 1.5 KB
Line 
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#
9count=`ls | grep omhelp- | wc -w`
10if [ "$count" = 1 ]
11then
12        dir=`ls | grep omhelp-`
13else
14        dir="do_not_use_current_omhelp_directory"
15fi
16if [ ! -e $dir/src/omhelp ]
17then
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 ..
43fi
44if [ ! -e doc ]
45then
46        echo "mkdir doc"
47        mkdir doc
48fi
49#
50echo "cd doc"
51cd doc
52#
53# build the documentation
54cmd="../$dir/src/omhelp"
55log="../omhelp.log"
56for arg1 in "" -xml
57do
58        for arg2 in -noframe -printable
59        do
60                echo "omhelp ckbs.omh $arg1 $arg2 -debug >& omhelp.log"
61                if ! $cmd ../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
71        done
72done
Note: See TracBrowser for help on using the repository browser.