Changeset 2931


Ignore:
Timestamp:
Oct 12, 2013 9:13:45 AM (6 years ago)
Author:
bradbell
Message:

Pust reuse of previous install in user documentation.

get_eigen.sh: reuse partial installs.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/get_eigen.sh

    r2926 r2931  
    1313# $begin get_eigen.sh$$ $newlinech #$$
    1414# $spell
     15#       gz
    1516#       Eigen
    1617#       CppAD
     
    4041# $head Prefix Directory$$
    4142# The Eigen include files are installed in the sub-directory
    42 # $code build/prefix/include/EIGEN$$ below the distribution directory.
     43# $code build/prefix/include/Eigen$$ below the distribution directory.
     44#
     45# $head Reuse$$
     46# The file $codei%build/external/eigen-%version%.tar.gz%$$
     47# and the directory $codei%build/external/eigen-%version%$$
     48# will be reused if they exist. Delete this file and directory
     49# to get a complete rebuild.
    4350#
    4451# $end
     
    100107        echo_eval mv $version.tar.gz eigen-$version.tar.gz
    101108fi
     109# -----------------------------------------------------------------------------
    102110if [ -e eigen-eigen-* ]
    103111then
    104112        echo_eval rm -r eigen-eigen-*
    105 fi
    106 if [ -e "eigen-$version" ]
    107 then
    108         echo_eval rm -r eigen-$version
    109113fi
    110114if [ -e "$prefix/include/Eigen" ]
     
    112116        echo_eval rm "$prefix/include/Eigen"
    113117fi
    114 echo_eval tar -xzf eigen-$version.tar.gz
    115 #
    116 git_name=`ls | grep eigen-eigen`
    117 echo_eval mv $git_name eigen-$version
     118if [ ! -e eigen-$version ]
     119then
     120        echo_eval tar -xzf eigen-$version.tar.gz
     121        git_name=`ls | grep eigen-eigen`
     122        echo_eval mv $git_name eigen-$version
     123fi
     124# -----------------------------------------------------------------------------
    118125#
    119126echo_eval cd eigen-$version
    120 echo_eval mkdir build
     127if [ ! -e build ]
     128then
     129        echo_eval mkdir build
     130fi
    121131echo_eval cd build
    122132echo_eval $cmake_program .. -DCMAKE_INSTALL_PREFIX=$prefix
  • trunk/bin/get_ipopt.sh

    r2926 r2931  
    1313# $begin get_ipopt.sh$$ $newlinech #$$
    1414# $spell
     15#       tgz
    1516#       Ipopt
    1617#       CppAD
     
    4243# $code build/prefix$$ below the distribution directory.
    4344#
     45# $head Reuse$$
     46# The file $codei%build/external/Ipopt-%version%.tgz%$$
     47# and the directory $codei%build/external/Ipopt-%version%$$
     48# will be reused if they exist. Delete this file and directory
     49# to get a complete rebuild.
     50#
    4451# $end
    4552# -----------------------------------------------------------------------------
     
    5764# -----------------------------------------------------------------------------
    5865echo 'Download ipopt to build/external and install it to build/prefix'
    59 version='3.11.1'
     66version='3.11.4'
    6067web_page='http://www.coin-or.org/download/source/Ipopt'
    6168prefix=`pwd`'/build/prefix'
  • trunk/bin/get_sacado.sh

    r2930 r2931  
    1313# $begin get_sacado.sh$$ $newlinech #$$
    1414# $spell
     15#       trilinos
     16#       gz
    1517#       Sacado
    1618#       CppAD
     
    4143# The Sacado libraries and include files are installed in the sub-directory
    4244# $code build/prefix$$ below the distribution directory.
     45#
     46# $head Reuse$$
     47# The file $codei%build/external/trilinos-%version%-Source.tar.gz%$$
     48# and the directory $codei%build/external/trilinos-%version%-Source%$$
     49# will be reused if they exist. Delete this file and directory
     50# to get a complete rebuild.
    4351#
    4452# $end
  • trunk/bin/jenkins.sh

    r2929 r2931  
    5353        exit 1
    5454fi
    55 #
     55# -----------------------------------------------------------------------
    5656# Running bin/get_fadbad.sh will install include files in
    5757#       trunk_dir/build/prefix/include/FADBAD++
    5858log_eval bin/get_fadbad.sh
    59 #
     59# -----------------------------------------------------------------------
    6060# Running bin/get_eigen.sh will install include files in
    6161#       trunk_dir/build/prefix/include/Eigen
    6262log_eval bin/get_eigen.sh
    63 #
    64 # Running bin/get_ipopt.sh will
    65 # build ipopt in: trunk_dir/build/external
    66 # install it in:  trunk_dir/build/prefix
    67 # It will re-use the currently compiled verison if available.
     63# -----------------------------------------------------------------------
     64# Running bin/get_ipopt.sh will install include files in
     65#       trunk_dir/build/prefix/include/coin
     66# and library files in
     67#       trunk_dir/build/prefix/$libdir
     68# where $libdir is 'lib64' if /usr/lib64 exists and just 'lib' otherwise.
    6869log_eval bin/get_ipopt.sh
    69 #
    70 # Running bin/get_sacado.sh will
    71 # build sacado in: trunk_dir/build/external
    72 # install it in:   trunk_dir/build/prefix
    73 # It will re-use the currently compiled verison if available.
    74 # It will also use libcoinlapack and libcoinblas if built by get_ipopt.sh
     70# -----------------------------------------------------------------------
     71# Running bin/get_sacado.sh will install include files in
     72#       trunk_dir/build/prefix/include
     73# and library files in
     74#       trunk_dir/build/prefix/$libdir
    7575log_eval bin/get_sacado.sh
    76 #
     76# -----------------------------------------------------------------------
    7777# Use trunk_dir/../build to build and test CppAD (no reuse)
    7878echo_eval cd ..
     
    8282#
    8383# configure cppad to use all the packages above
    84 build_type=`rpm --eval %{_host}`
     84if which rmp >& /dev/null
     85then
     86        build_type=`rpm --eval %{_host}`
     87        build_type="--build=$build_type"
     88else
     89        build_type=''
     90fi
    8591#
    8692cat << EOF
    8793$trunk_dir/configure \\
    88         --build=$build_type \\
     94        $build_type \\
    8995        SACADO_DIR="$trunk_dir/build/prefix" \\
    9096        EIGEN_DIR="$trunk_dir/build/prefix" \\
  • trunk/omh/whats_new/whats_new_13.omh

    r2905 r2931  
    1414$dollar @$$
    1515$spell
     16        sacado
    1617        resize
    1718        sb
     
    5354assist you in learning about changes between various versions of CppAD.
    5455
     56$head 10-12$$
     57Change $cref get_eigen.sh$$ so that it will reuse install information
     58when it is present.
     59In addition document reuse for
     60$cref/get_eigen.sh/get_eigen.sh/Reuse/$$,
     61$cref/get_ipopt.sh/get_ipopt.sh/Reuse/$$, and
     62$cref/get_sacado.sh/get_sacado.sh/Reuse/$$.
     63
     64
    5565$head 09-20$$
    5666$list number$$
Note: See TracChangeset for help on using the changeset viewer.