source: projects/ckbs/trunk/copy_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.6 KB
Line 
1#! /bin/bash -eu
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# If this is the trunk, then update the version number
9dir=`pwd | sed -e 's|.*/ckbs/||'`
10if [ "$dir" = "trunk" ]
11then
12        version=`date +%F | sed -e 's|-||g' -e 's|^|0.|'`
13        #
14        sed -i ckbs.omh -e "s/ckbs-[0-9.]\{10\}/ckbs-$version/"
15fi
16#
17if [ -e doc ]
18then
19        echo "./build_doc.sh"
20        if ! ./build_doc.sh
21        then
22                echo "copy_doc.sh: ./build_doc.sh error"
23                exit 1
24        fi
25fi
26#
27echo "cd doc"
28cd doc
29#
30if [ ! -e html ]
31then
32        echo "svn checkout \\"
33        echo "  https://projects.coin-or.org/svn/CoinBazaar/html/ckbs html"
34        svn checkout https://projects.coin-or.org/svn/CoinBazaar/html/ckbs html
35else
36        echo "svn update html"
37        svn update html
38fi
39#
40old_list=`ls html/* | sed -e 's|html/||'`
41for file in $old_list
42do
43        if [ ! -e $file ]
44        then
45                echo "svn delete html/$file"
46                svn delete html/$file
47        fi
48done
49#
50new_list=`ls * | sed -e 's|html:||'`
51for file in $new_list
52do
53        if [ ! -e html/$file ]
54        then
55                echo "cp $file html/$file"
56                cp $file html/$file
57                #
58                echo "svn add html/$file"
59                svn add html/$file
60        else
61                echo "cp $file html/$file"
62                cp $file html/$file
63        fi
64done
65echo ""
66echo "To see the differences use:"
67echo "  svn diff doc/html"
68echo "To commit the changes use:"
69echo "  svn commit -m \"[html/ckbs] message\" doc/html"
70echo "to commit the changes."
Note: See TracBrowser for help on using the repository browser.