mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Update man page.
This commit is contained in:
20
man/remind.1
20
man/remind.1
@@ -3459,12 +3459,12 @@ ends. Otherwise, \fBRemind\fR computes the next trigger date, and re-tests
|
|||||||
or non-null, or until the iteration limit specified with the \fB\-x\fR
|
or non-null, or until the iteration limit specified with the \fB\-x\fR
|
||||||
command-line option is reached.
|
command-line option is reached.
|
||||||
.PP
|
.PP
|
||||||
If \fIexpr\fR is not satisfied, then \fBtrigvalid()\fR is set to 0.
|
If \fIexpr\fR is not satisfied, then \fBtrigvalid()\fR is set to 0 and
|
||||||
Otherwise, \fBtrigvalid()\fR is set to 1. In any event, no error message
|
the error message "Can't compute trigger" is issued. Otherwise,
|
||||||
is issued.
|
\fBtrigvalid()\fR is set to 1.
|
||||||
.PP
|
.PP
|
||||||
This is really useful only if \fIexpr\fR involves a call to the
|
This is really useful only if \fIexpr\fR involves a call to the
|
||||||
\fBtrigdate()\fR function; otherwise, \fIexpr\fR will not change as
|
\fBtrigdate()\fR or related functions; otherwise, \fIexpr\fR will not change as
|
||||||
\fBRemind\fR iterates.
|
\fBRemind\fR iterates.
|
||||||
.PP
|
.PP
|
||||||
An example of the usefulness of \fBSATISFY\fR: Suppose you wish to
|
An example of the usefulness of \fBSATISFY\fR: Suppose you wish to
|
||||||
@@ -3487,6 +3487,12 @@ more complicated sequence:
|
|||||||
ENDIF
|
ENDIF
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
|
You can write the REM statement a little more concisely:
|
||||||
|
.PP
|
||||||
|
.nf
|
||||||
|
REM 13 SATISFY $Tw == 5
|
||||||
|
.fi
|
||||||
|
.PP
|
||||||
Let's see how this works. The \fBSATISFY\fR clause iterates through
|
Let's see how this works. The \fBSATISFY\fR clause iterates through
|
||||||
all the 13ths of successive months, until a trigger date is found whose
|
all the 13ths of successive months, until a trigger date is found whose
|
||||||
day-of-week is Friday (== 5). If a valid date was found, we use the
|
day-of-week is Friday (== 5). If a valid date was found, we use the
|
||||||
@@ -3549,16 +3555,14 @@ the reminder is not triggered.
|
|||||||
Thus, the "Friday the 13th" example can be expressed more compactly as:
|
Thus, the "Friday the 13th" example can be expressed more compactly as:
|
||||||
.PP
|
.PP
|
||||||
.nf
|
.nf
|
||||||
REM 13 +2 SATISFY [wkdaynum(trigdate()) == 5] \\
|
REM 13 +2 SATISFY [$Tw == 5] MSG Friday the 13th is %b.
|
||||||
MSG Friday the 13th is %b.
|
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
And you can trigger a reminder on Mondays, Wednesdays and Thursdays
|
And you can trigger a reminder on Mondays, Wednesdays and Thursdays
|
||||||
occurring on odd-numbered days of the month with the following:
|
occurring on odd-numbered days of the month with the following:
|
||||||
.PP
|
.PP
|
||||||
.nf
|
.nf
|
||||||
REM Mon Wed Thu SATISFY [day(trigdate())%2] \\
|
REM Mon Wed Thu SATISFY [$Td %2 ] MSG Here it is!!!
|
||||||
MSG Here it is!!!
|
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
Note that \fBSATISFY\fR and \fBOMITFUNC\fR can often be used to solve the
|
Note that \fBSATISFY\fR and \fBOMITFUNC\fR can often be used to solve the
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /home/dfs/Software/Remind.git || exit 1
|
cd /home/dfs/Software/Remind.git || exit 1
|
||||||
|
|
||||||
rm -f .git/COMMIT_EDITMSG
|
rm -f .git/COMMIT_EDITMSG .git/*~
|
||||||
|
|
||||||
git update-server-info && cd .git && rsync --archive --verbose --progress --delete ./ dianne.skoll.ca:web/projects/remind/git/Remind.git/
|
git update-server-info && cd .git && rsync --archive --verbose --progress --delete ./ dianne.skoll.ca:web/projects/remind/git/Remind.git/
|
||||||
exit $?
|
exit $?
|
||||||
|
|||||||
Reference in New Issue
Block a user