Changeset 1690


Ignore:
Timestamp:
Apr 25, 2010 2:37:22 AM (10 years ago)
Author:
bradbell
Message:

stable/20100101: Version that created 20100101.3 release (copied from trunk).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/20100101/new_release.sh

    r1665 r1690  
    1313repository="https://projects.coin-or.org/svn/CppAD"
    1414stable_version="20100101"
    15 release="2"
     15release="3"
    1616release_version="$stable_version.$release"
    1717msg="Creating releases/$release_version"
    1818# -----------------------------------------------------------------------------
     19echo "svn revert configure.ac"
     20svn revert configure.ac
    1921if ! grep "AC_INIT(CppAD.*, $stable_version.$release" configure.ac >> /dev/null
    2022then
    21         echo "Must change version number in configure.ac,"
    22         echo "then run build.sh all test, and check in changes."
     23        echo "Fix version number in configure.ac, then execute."
     24        echo "  ./build.sh version automake config_none"
     25        echo "then commit the changes."
     26        exit 1
     27fi
     28echo "svn revert cppad/config.h"
     29svn revert cppad/config.h
     30if ! grep "PACKAGE_STRING.*CppAD.*$stable_version.$release" \
     31        cppad/config.h >> /dev/null
     32then
     33        echo "Fix version number in cppad/config.h does not match configure.ac."
     34        echo "Must execute build.sh"
     35        exit 1
     36fi
     37echo "svn revert cppad/configure.hpp"
     38svn revert cppad/configure.hpp
     39if ! grep "PACKAGE_STRING.*CppAD.*$stable_version.$release" \
     40        cppad/configure.hpp >> /dev/null
     41then
     42        echo "Fix version number in cppad/config.h does not match configure.ac."
     43        echo "Must execute build.sh"
    2344        exit 1
    2445fi
    2546# -----------------------------------------------------------------------------
    26 #
    2747# check initial working directory
    28 dir=`pwd | sed -e 's|.*/||'`
    29 if [ "$dir" != "trunk" ]
     48dir=`pwd | sed -e 's|.*/[Cc][Pp][Pp][Aa][Dd]/||'`
     49if [ "$dir" != "stable/$stable_version" ]
    3050then
    31         echo "new_release.sh: must execute this script in the trunk"
     51        echo "new_release.sh: can only execute in stable/$stable_version"
    3252        exit 1
    3353fi
    34 echo "cd .."
    35 cd ..
    3654# -----------------------------------------------------------------------------
    3755rep_stable="$repository/stable/$stable_version"
     
    4462fi
    4563# -----------------------------------------------------------------------------
     64echo "cd ../.."
     65cd ../..
    4666if [ -e conf ]
    4767then
     
    7090        -e "/^ *<release/,/^ *<\/release/s/[0-9]\{8\}\.[0-9]*/$release_version/"
    7191#
    72 msg="Update stabel and release numbers in conf/projDesc.xml"
     92msg="Update stable and release numbers in conf/projDesc.xml"
    7393echo "Use the command the following command to finish the process"
    7494echo "  svn commit -m \"$msg\" ../conf/projDesc.xml"
Note: See TracChangeset for help on using the changeset viewer.