X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=scripts%2Fexpire-iso8601;h=76006783bbfe17f818e810cfdc9bc8a553a32c70;hp=3a9777d25728c9762cd61df37d7a945176038198;hb=7261ad4423effd5105dca0d6b9537841f8218793;hpb=91705745330b10e14ed1022bd954bc760d09ad05 diff --git a/scripts/expire-iso8601 b/scripts/expire-iso8601 index 3a9777d..7600678 100755 --- a/scripts/expire-iso8601 +++ b/scripts/expire-iso8601 @@ -16,8 +16,8 @@ example: uses units of 86400s (1 day) with a slop of 8640 it keeps 14 daily items (that is 14 items, dated no less than 86400-8640 apart) - and 7 weekly items - (that is 7 items, dated no less than 7*86400-8640 apart) + and 4 weekly items + (that is 4 items, dated no less than 7*86400-8640 apart) the 14 daily and 7 weekly items may be the same, or not There is no need to sort the list of x pairs. exit status: @@ -28,6 +28,23 @@ exit status: END } +# Copyright 2006 Ian Jackson +# +# This script and its documentation (if any) are free software; you +# can redistribute it and/or modify them under the terms of the GNU +# General Public License as published by the Free Software Foundation; +# either version 3, or (at your option) any later version. +# +# chiark-named-conf and its manpage are distributed in the hope that +# it will be useful, but WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, consult the Free Software Foundation's +# website at www.fsf.org, or the GNU Project website at www.gnu.org. + + trap 'exit 16' 0 badusage () { echo >&2 "bad usage: $*"; usage >&2; trap '' 0; exit 8; }