Ignore:
Timestamp:
Mar 2, 2010 2:47:20 AM (11 years ago)
Author:
bradbell
Message:

[ckbs/trunk] Change which wast done by hand at revisions 85 and 86.

new_stable.sh: Copy documentaiton into stable before creating first release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • projects/ckbs/trunk/new_stable.sh

    r77 r87  
    66# License: GNU General Public License Version 2
    77# ----------------------------------------------------------------------------
    8 echo "Getting current revision number"
    9 rev_trunk=`svn info --revision HEAD | \
    10         grep '^Revision:' | sed -e 's|^Revision: *||'`
    11 rev_stable=`expr $rev_trunk + 1`
    12 rev_release=`expr $rev_trunk + 2`
    13 echo "rev_trunk=$rev_trunk, rev_stable=$rev_stable, rev_release=$rev_release"
    14 #
    15 stable_version=`date +%F |sed -e 's/-//g' -e 's|^|0.|'`
    16 repository="https://projects.coin-or.org/svn/CoinBazaar/projects/ckbs"
    17 rep_trunk="$repository/trunk"
    18 rep_stable="$repository/stable/$stable_version"
    19 rep_release="$repository/releases/$stable_version.0"
    20 #
    218# check initial working directory
    229dir=`pwd | sed -e 's|.*/||'`
     
    2613        exit 1
    2714fi
     15#
     16echo "Getting current revision number for version of trunk"
     17rev_trunk=`svn info --revision HEAD | \
     18        grep '^Revision:' | sed -e 's|^Revision: *||'`
     19echo "rev_trunk=$rev_trunk"
     20#
     21# number for the stable version we are creating
     22stable_version=`date +%F |sed -e 's/-//g' -e 's|^|0.|'`
     23#
     24# check that the documentation is up to date
    2825doc_version=`grep '$section' ckbs.omh | \
    2926        sed -e 's|.*ckbs-\([0-9.]\{10\}\).*|\1|'`
     
    3633fi
    3734#
     35# web address for trunk, stable, and release
     36repository="https://projects.coin-or.org/svn/CoinBazaar"
     37rep_trunk="$repository/projects/ckbs/trunk"
     38rep_stable="$repository/projects/ckbs/stable/$stable_version"
     39rep_release="$repository/projects/ckbs/releases/$stable_version.0"
     40rep_html="$repository/html/ckbs"
     41#
    3842# create the new stable version
    3943msg="[ckbs/stable] Create ckbs/stable/$stable_version
    40 from ckbs/trunk at revision $rev_stable."
     44from ckbs/trunk at revision $rev_trunk."
    4145echo "svn copy $rep_trunk $rep_stable -m \"$msg\""
    4246if ! svn copy  $rep_trunk $rep_stable -m "$msg"
     
    4650fi
    4751#
     52# add a copy of the documentation to the stable version
     53msg="[ckbs/stable] Add documentation corresponding to this stable version"
     54echo "svn copy $rep_html $rep_stable/doc -m \"$msg\""
     55if ! svn copy $rep_html $rep_stable/doc -m "$msg"
     56then
     57        "new_stable.sh: Cannot copy documentation for this stable version"
     58        exit 1
     59fi
     60#
    4861# create the new release version
    4962msg="[ckbs/releases] Create ckbs/releases/$stable_version.0
    50 from ckbs/stable/$stable_version at revision $rev_release."
     63from ckbs/trunk at revision $rev_trunk."
    5164echo "svn copy $rep_stable $rep_release -m \"$msg\""
    5265if ! svn copy  $rep_stable $rep_release -m "$msg"
Note: See TracChangeset for help on using the changeset viewer.