Changeset 2280


Ignore:
Timestamp:
Jan 30, 2012 12:25:47 PM (8 years ago)
Author:
bradbell
Message:

special_version.sh: Change multi_thread output to use special version number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/special_version.sh

    r2278 r2280  
    1717fi
    1818# ----------------------------------------------------------------------------
    19 case "$1" in
     19version="$1"
     20case "$version" in
    2021        2011 | 2012.0 | 2012.1 )
    21         cppad_revision='2276'
     22        subversion_revision='2279'
    2223        ;;
    2324
    2425        *)
    2526cat << EOF
    26         usage: bin/special_version.sh name
    27         where name is one of the following: 2011, 2012.0 2012.1
     27        usage: bin/special_version.sh version
     28        where version is one of the following: 2011, 2012.0 2012.1
    2829EOF
    2930        exit 1
    3031        ;;
    3132esac
    32 version="$1"
    3333url='https://projects.coin-or.org/svn/CppAD/trunk'
    3434# ----------------------------------------------------------------------------
     
    4242        fi
    4343else
    44         echo "svn checkout -r $cppad_revision $url ../special-$version"
    45         svn checkout -r $cppad_revision $url ../special-$version
     44        echo "svn checkout -r $subversion_revision $url ../special-$version"
     45        svn checkout -r $subversion_revision $url ../special-$version
    4646fi
    4747echo "cd ../special-$version"
     
    5454        do
    5555                file="multi_thread/$threading/team_$threading.cpp"
    56                 #
    57                 echo "svn revert $file"
    5856                svn revert $file
    5957                #
     
    8886        ;;
    8987esac
     88#
     89file='cppad/configure.hpp'
     90text="# define CPPAD_PACKAGE_STRING"
     91svn revert $file
     92echo "sed -i $file -e \"s|^$text.*|\1 \"cppad-$version\"|\""
     93sed -i $file -e "s|^\($text\) .*|\1 \"cppad-$version\"|"
     94#
    9095echo "mkdir work ; cd work"
    9196mkdir work ; cd work
     97#
    9298response='n'
    9399while [ "$response" != 'y' ]
Note: See TracChangeset for help on using the changeset viewer.