~nabijaczleweli/ossp-cvs

[CVS] OSSP: ossp-pkg/shtool/ ChangeLog sh.rotate

Ralf S. Engelschall <rse@ossp.org>
Details
Message ID
<20080921150118.8D820752854@mail.ossp.org>
Sender timestamp
1222016478
DKIM signature
missing
Download raw message
  OSSP CVS Master Repository
  http://cvs.ossp.org/
  ____________________________________________________________________________

  Server: cvs.ossp.org                     Name:   Ralf S. Engelschall
  Root:   /v/ossp/cvs                      Email:  rse@ossp.org
  Module: ossp-pkg                         Date:   21-Sep-2008 17:01:15
  Branch: HEAD                             Handle: 2008092116011500

  Modified files:
    ossp-pkg/shtool         ChangeLog sh.rotate

  Log:
    Provide SHTOOL_ROTATE_LOGFILE environment variable
    to "shtool rotate" prolog/epilog commands.
    
    Submitted by: Bill Campbell <bill@celestial.com>

  Summary:
    Revision    Changes     Path
    1.242       +6  -0      ossp-pkg/shtool/ChangeLog
    1.15        +10 -0      ossp-pkg/shtool/sh.rotate
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: ossp-pkg/shtool/ChangeLog
  ============================================================================
  $ cvs diff -u -r1.241 -r1.242 ChangeLog
  --- ossp-pkg/shtool/ChangeLog	18 Jul 2008 08:04:32 -0000	1.241
  +++ ossp-pkg/shtool/ChangeLog	21 Sep 2008 15:01:15 -0000	1.242
  @@ -9,6 +9,12 @@
   
    ChangeLog
   
  + Changes between 2.0.8 and 2.0.9 (18-Jul-2008 to xx-XXX-2008):
  +
  +   *) Provide SHTOOL_ROTATE_LOGFILE environment variable
  +      to "shtool rotate" prolog/epilog commands.
  +      [Bill Campbell <bill@celestial.com>]
  +
    Changes between 2.0.7 and 2.0.8 (19-May-2007 to 18-Jul-2008):
   
      *) Upgrade build environment to GNU autoconf 2.62
  @@ .
  patch -p0 <<'@@ .'
  Index: ossp-pkg/shtool/sh.rotate
  ============================================================================
  $ cvs diff -u -r1.14 -r1.15 sh.rotate
  --- ossp-pkg/shtool/sh.rotate	2 Apr 2008 20:13:44 -0000	1.14
  +++ ossp-pkg/shtool/sh.rotate	21 Sep 2008 15:01:15 -0000	1.15
  @@ -202,6 +202,11 @@
   
       #   execute prolog
       if [ ".$opt_P" != . ]; then
  +        #   pass current log file name to prolog
  +        #   prolog cannot be handed an argument as it may be
  +        #   called as "prolog && something"  
  +        SHTOOL_ROTATE_LOGFILE="$ldir/$file"
  +        export SHTOOL_ROTATE_LOGFILE
           if [ ".$opt_t" = .yes ]; then
               echo "$opt_P"
           fi
  @@ -391,6 +396,11 @@
   
       #   execute epilog
       if [ ".$opt_E" != . ]; then
  +        #   pass archive file name to epilog command
  +        #   epilog cannot be handed an argument as it is often
  +        #   called as "epilog && something"
  +        SHTOOL_ROTATE_LOGFILE="${adir}/${file}.${n}"
  +        export SHTOOL_ROTATE_LOGFILE
           if [ ".$opt_t" = .yes ]; then
               echo "$opt_E"
           fi
  @@ .
Reply to thread Export thread (mbox)