Changeset 567


Ignore:
Timestamp:
Oct 21, 2006 10:51:42 AM (14 years ago)
Author:
bradbell
Message:

trunk: automatically update date in CppAD/config.h

SvnCommit?.sh: file that make this commit.
file2lower.sh: automated script from aborted branch (save for future attempt).
diffToday.sh: extend so it works with CppAD/config.h.
Build.sh: automaticaly update date in CppAD/config.h.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Build.sh

    r533 r567  
    3232        yy_mm_dd=`date +%g-%m-%d`
    3333        #
     34        # change Autoconf version to today
     35        version=$yy_mm_dd
     36        #
    3437        # configure.ac
    3538        sed configure.ac > configure.ac.tmp \
     
    4447        mv   AUTHORS.tmp AUTHORS
    4548        #
    46         # change Autoconf version to today
    47         version=$yy_mm_dd
     49        # update CppAD/config.h
     50        # even though gets overwritten when configure runs.
     51        sed CppAD/config.h > CppAD/config.tmp \
     52        -e "s/\"[0-9][0-9]-[0-9][0-9]-[0-9][0-9]\"/\"$yy_mm_dd\"/" \
     53        -e "s/ [0-9][0-9]-[0-9][0-9]-[0-9][0-9]\"/ $yy_mm_dd\"/"
     54        diff CppAD/config.h   CppAD/config.tmp
     55        mv   CppAD/config.tmp CppAD/config.h
    4856        #
    4957        for name in Doc.omh omh/InstallUnix.omh omh/InstallWindows.omh
     
    347355echo "configure test includes all the possible options except PREFIX_DIR"
    348356echo "make           use make to build all of the requested targets"
    349 echo "doc            build all the documentation in Doc directory"
     357echo "omhelp         build all the documentation in Doc & Dev directories"
    350358echo "dist           create the distribution file cppad-version.cpl.tgz"
    351359echo "test           unpack *.cpl.tgz, compile, run tests, result in Test.log"
  • trunk/SvnCommit.sh

    r556 r567  
    3939#
    4040# ----------------------------------------------------------------------
    41 log_entry="Missing from previous commit.
     41log_entry="automatically update date in CppAD/config.h
    4242
    4343SvnCommit.sh: file that make this commit.
    44 WhatsNew06.omh: user's view of the changes.
    45 Makefile.am: include new preprocessor section.
    46 ErrorHandler.h: proper interaction with CppAD.h.
     44file2lower.sh: automated script from aborted branch (save for future attempt).
     45diffToday.sh: extend so it works with CppAD/config.h.
     46Build.sh: automaticaly update date in CppAD/config.h.
    4747"
    4848#
     
    5252change_list="
    5353        SvnCommit.sh
    54         omh/WhatsNew06.omh
    55         Makefile.am
    56         CppAD/ErrorHandler.h
     54        file2lower.sh
     55        diffToday.sh
     56        Build.sh
    5757"
    5858#
  • trunk/diffToday.sh

    r533 r567  
    2525        -e "s/, 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9] *,/, 20$yy_mm_dd,/" \
    2626        -e "s/, [0-9][0-9]-[0-9][0-9]-[0-9][0-9] *,/, $yy_mm_dd,/" \
     27        -e "s/ [0-9][0-9]-[0-9][0-9]-[0-9][0-9]\"/ $yy_mm_dd\"/" \
     28        -e "s/\"[0-9][0-9]-[0-9][0-9]-[0-9][0-9]\"/\"$yy_mm_dd\"/" \
    2729        -e "s/cppad-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]/cppad-$yy_mm_dd/g"
    2830#
  • trunk/file2lower.sh

    r559 r567  
    11#! /bin/bash
    22#
     3echo "Next try we try this, only change file names, not cross reference tags"
     4exit 1
    35if [ "$1" == "go-for-it" ]
    46then
     
    3941        new_name=`echo $new | sed -e "s|.*/||" -e "s|\.$extension||"`
    4042        d='$'
    41         echo "s@\([/|%]\)$old_name\([/|%]\)@\1$new_name\2@g" >> file2lower.sed
    42         echo "s@\([/|%]\)$old_name\.omh@\1$new_name.omh@g"   >> file2lower.sed
     43        echo "s@\$begin $old_name\\\$@\$begin $new_name\$@"   >> file2lower.sed
     44        echo "s@\([/|%]\)$old_name\([/|%]\)@\1$new_name\2@g"  >> file2lower.sed
     45        echo "s@\([ /|%\]\)$old_name\.omh@\1$new_name.omh@g"  >> file2lower.sed
    4346done
    4447chmod +x file2lower.mv
Note: See TracChangeset for help on using the changeset viewer.