Changeset 95


Ignore:
Timestamp:
Mar 2, 2010 10:03:30 AM (11 years ago)
Author:
bradbell
Message:

[cbks/trunk] Improve scripts that help with commits to repositories.

new_release.sh: fix errors in this script (and make executable).
ckbs.omh: update date so it corresponds to documentation.
copy_doc.sh:

Location:
projects/ckbs/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • projects/ckbs/trunk/ckbs.omh

    r88 r95  
    3939%$$
    4040
    41 $section ckbs-0.20100228.0: A Constrained Kalman-Bucy Smoother$$
     41$section ckbs-0.20100302.0: A Constrained Kalman-Bucy Smoother$$
    4242
    4343$head MathML$$
     
    115115$codei%
    116116        web="https://projects.coin-or.org/svn/CoinBazaar/projects/ckbs"
    117         svn checkout @web/trunk ckbs-0.20100228.0
     117        svn checkout @web/trunk ckbs-0.20100302.0
    118118%$$
    119 This will create the $code ckbs-0.20100228.0$$ directory.
     119This will create the $code ckbs-0.20100302.0$$ directory.
    120120
    121121$head Test Install$$
     
    138138be built by executing the commands
    139139$codep
    140         cd ckbs-0.20100228.0
     140        cd ckbs-0.20100302.0
    141141        ./build_doc.sh
    142142$$
    143143You can then view the documentation in your browser by opening the file
    144144$codei%
    145         ckbs-0.20100228.0/doc/ckbs.xml
     145        ckbs-0.20100302.0/doc/ckbs.xml
    146146%$$
    147147
  • projects/ckbs/trunk/copy_doc.sh

    r77 r95  
    88# If this is the trunk, then update the version number
    99dir=`pwd | sed -e 's|.*/ckbs/||'`
    10 if [ "$dir" = "trunk" ]
     10if [ "$dir" != "trunk" ]
    1111then
    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/"
     12        echo "copy_doc.sh: should only be run in the trunk."
     13        echo "For stable versions use ./build_doc.sh and commit changes in doc/*"
     14        exit 1
    1515fi
     16version=`date +%F | sed -e 's|-||g' -e 's|^|0.|'`
     17sed -i ckbs.omh -e "s/ckbs-[0-9.]\{10\}/ckbs-$version/"
    1618#
    1719if [ -e doc ]
  • projects/ckbs/trunk/new_release.sh

    • Property svn:executable set to *
    r88 r95  
    11#! /bin/bash
    2 stable_version="0.20200228"
     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# ----------------------------------------------------------------------------
     8stable_version="0.20100228"
    39release_number="1"
    4 message="[ckbs/releases] add documentation to tarball release"
     10msg="[ckbs/releases] add documentation (missing from 0.20100228.0 release)."
    511# -------------------------------------------------------------------------
    6 repository="https://projects.coin-or.org/svn/CoinBazaar"
     12repository="https://projects.coin-or.org/svn/CoinBazaar/projects/ckbs"
     13rep_stable=$repository/stable/$stable_version
     14rep_release=$repository/releases/$stable_version.$release_number
    715#
    8 svn copy \
    9         $repository/ckbs/stable/$stable_version \
    10         $reposiotry/ckbs/releases/$stable_version.$release_number \
    11         -m "$message"
     16echo "svn $rep_stable $rep_release -m \"$msg\""
     17if ! svn copy $rep_stable $rep_release -m "$msg"
     18then
     19        echo "new_stable.sh: svn copy failed"
     20fi
     21exit 0
Note: See TracChangeset for help on using the changeset viewer.