X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fexicyclog.src;h=4fb160ac03a54e1ec5c7e7050921abca7ea12d35;hb=4c0a7a9cb02f9904c2e890f77ff8ce3a6beb25f4;hp=1559a4794512b3f44e9a11613bbe530233ae95d5;hpb=77d31cea07808daf55f04cf6929adf5d805fa726;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/exicyclog.src b/src/src/exicyclog.src index 1559a4794..4fb160ac0 100644 --- a/src/src/exicyclog.src +++ b/src/src/exicyclog.src @@ -1,6 +1,6 @@ #! /bin/sh -# Copyright (c) University of Cambridge, 1995 - 2007 +# Copyright (c) University of Cambridge, 1995 - 2015 # See the file NOTICE for conditions of use and distribution. # This script takes the following command line arguments: @@ -232,16 +232,16 @@ $b # Now do the job. First remove the files that have "fallen off the bottom". # Look for both the compressed and uncompressed forms. -if [ $keep -lt 10 ]; then keept=0$keep; else keept=$keep; fi; +if [ $keep -lt 10 ]; then rotation=0$keep; else rotation=$keep; fi; -if [ -f $mainlog.$keept ]; then $rm $mainlog.$keept; fi; -if [ -f $mainlog.$keept.$suffix ]; then $rm $mainlog.$keept.$suffix; fi; +if [ -f $mainlog.$rotation ]; then $rm $mainlog.$rotation; fi; +if [ -f $mainlog.$rotation.$suffix ]; then $rm $mainlog.$rotation.$suffix; fi; -if [ -f $rejectlog.$keept ]; then $rm $rejectlog.$keept; fi; -if [ -f $rejectlog.$keept.$suffix ]; then $rm $rejectlog.$keept.$suffix; fi; +if [ -f $rejectlog.$rotation ]; then $rm $rejectlog.$rotation; fi; +if [ -f $rejectlog.$rotation.$suffix ]; then $rm $rejectlog.$rotation.$suffix; fi; -if [ -f $paniclog.$keept ]; then $rm $paniclog.$keept; fi; -if [ -f $paniclog.$keept.$suffix ]; then $rm $paniclog.$keept.$suffix; fi; +if [ -f $paniclog.$rotation ]; then $rm $paniclog.$rotation; fi; +if [ -f $paniclog.$rotation.$suffix ]; then $rm $paniclog.$rotation.$suffix; fi; # Now rename all the previous old files by increasing their numbers by 1. # When the number is less than 10, insert a leading zero.