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: 22-Sep-2008 15:03:49
Branch: HEAD Handle: 2008092214034800
Modified files:
ossp-pkg/shtool sh.rotate
Log:
remove number extension and document environment variables
Summary:
Revision Changes Path
1.16 +8 -5 ossp-pkg/shtool/sh.rotate
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: ossp-pkg/shtool/sh.rotate
============================================================================
$ cvs diff -u -r1.15 -r1.16 sh.rotate
--- ossp-pkg/shtool/sh.rotate 21 Sep 2008 15:01:15 -0000 1.15
+++ ossp-pkg/shtool/sh.rotate 22 Sep 2008 13:03:48 -0000 1.16
@@ -399,7 +399,7 @@
# 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}"
+ SHTOOL_ROTATE_LOGFILE="${adir}/${file}"
export SHTOOL_ROTATE_LOGFILE
if [ ".$opt_t" = .yes ]; then
echo "$opt_E"
@@ -568,13 +568,16 @@
=item B<-P>, B<--prolog> I<cmd>
-Execute a "prolog" command before the rotation step. Useful in
-conjunction with B<-s>.
+Execute a "prolog" command before the rotation step.
+Useful in conjunction with B<-s>. The environment variable
+C<SHTOOL_ROTATE_LOGFILE> points to the path of the original logfile.
=item B<-E>, B<--epilog> I<cmd>
-Execute a "epilog" command after the rotation step. Useful in
-conjunction with B<-s>.
+Execute a "epilog" command after the rotation step. Useful
+in conjunction with B<-s>. The environment variable
+C<SHTOOL_ROTATE_LOGFILE> points to the path of the archived logfile
+(without any number extension).
=back
@@ .