source: projects/ckbs/trunk/new_stable.sh @ 69

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.6 KB
Line 
1#! /bin/bash
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# ----------------------------------------------------------------------------
8echo "Current revision number = "
9rev=`svn info --revision HEAD | grep '^Revision:' | sed -e 's|^Revision: *||'`
10echo "$rev"
11stable_version=`date +%F |sed -e 's/-//g' -e 's|^|0.|'`
12repository="https://projects.coin-or.org/svn/CoinBazaar/projects/ckbs"
13rep_trunk="$repository/trunk"
14rep_stable="$repository/stable/$stable_version"
15#
16# check initial working directory
17dir=`pwd | sed -e 's|.*/||'`
18if [ "$dir" != "trunk" ]
19then
20        echo "new_stable.sh: must execute this script in the trunk"
21        exit 1
22fi
23doc_version=`grep '$section' omh/ckbs.omh | \
24        sed -e 's|.*ckbs-\([0-9.]\{10\}\).*|\1|'`
25if [ "$doc_version" != "$stable_version" ]
26then
27        echo "new_stable.sh: run ./copy_doc.sh to bring doc version up to date"
28        echo "new_stable.sh: stable_version = $stable_version"
29        echo "new_stable.sh: doc_version    = $doc_version"
30        exit 1
31fi
32#
33# create the new stable version
34msg="Create ckbs/stable/$stable_version from ckbs/trunk at revision $rev."
35echo "svn copy $rep_trunk $rep_stable -m \"$msg\""
36if ! svn copy  $rep_trunk $rep_stable -m "$msg"
37then
38        "new_stable.sh: Cannot create $rep_stable"
39        exit 1
40fi
41echo ""
42echo "To check out this stable version use the command:"
43echo "  svn_checkout.sh ckbs stable/$stable_version"
Note: See TracBrowser for help on using the repository browser.