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

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

[ckbs/trunk] Add helper shell scripts.

build.sh: plan to replace with Coin automatic tarball generation.
commit.sh: aids with svn commit commands.
svn_status.sh: removes certain files from svn status results.
test.sh: runs the tests and returns error flag.
build_doc.sh: downloads OMhelp and builds the documentation.

COPYING: remove unecessary file.

  • Property svn:executable set to *
File size: 1.3 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 [ -d doc ]
45then
46        echo "rm -r doc"
47        rm -r doc
48fi
49echo "mkdir doc"
50mkdir doc
51#
52echo "cd doc"
53cd doc
54#
55# build the documentation
56for arg1 in "" -xml
57do
58        for arg2 in -noframe -printable
59        do
60                echo "../$dir/src/omhelp ../omh/ckbs.omh $arg1 $arg2 -debug"
61                ../$dir/src/omhelp ../omh/ckbs.omh $arg1 $arg2 -debug
62        done
63done
Note: See TracBrowser for help on using the repository browser.