git.annexia.org
/
whenjobs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Persist variables to file (~/.whenjobs/variables).
[whenjobs.git]
/
tools
/
whenjobs.pod
diff --git
a/tools/whenjobs.pod
b/tools/whenjobs.pod
index
acc1d94
..
8455bcf
100644
(file)
--- a/
tools/whenjobs.pod
+++ b/
tools/whenjobs.pod
@@
-277,7
+277,7
@@
words, the variables are set, but "quietly" so as not to trigger any
jobs to run.
Note that this can lead to some unexpected results: one case is a
jobs to run.
Note that this can lead to some unexpected results: one case is a
-
when
job such as:
+job such as:
when changed a || changed b : << ... >>
when changed a || changed b : << ... >>
@@
-406,7
+406,7
@@
A when statement has the form:
>>
where C<E<lt>exprE<gt>> is a I<when expression>, described below.
>>
where C<E<lt>exprE<gt>> is a I<when expression>, described below.
-Don't forget the colon character between the
period
expression and the
+Don't forget the colon character between the expression and the
shell script.
A when statement is a job which runs when the conditions described in
shell script.
A when statement is a job which runs when the conditions described in
@@
-447,6
+447,12
@@
If the sub-expressions are numeric, then numeric comparison is done.
If either sub-expression is non-numeric, then both expressions are
converted (if necessary) to strings and string comparison is done.
If either sub-expression is non-numeric, then both expressions are
converted (if necessary) to strings and string comparison is done.
+=item I<expr> B<E<lt>E<gt>> I<expr>
+
+=item I<expr> B<!=> I<expr>
+
+Either form can be used to test the two expressions for inequality.
+
=item B<!> I<expr>
Boolean negative of I<expr>.
=item B<!> I<expr>
Boolean negative of I<expr>.
@@
-502,7
+508,7
@@
uploaded, try giving the jobs an explicit name.
If the named variable has changed since this job last ran, then this
evaluates to true, else false.
If the named variable has changed since this job last ran, then this
evaluates to true, else false.
-This is the same as writing C<prev variable
=
= variable>.
+This is the same as writing C<prev variable
!
= variable>.
=item B<increases> I<variable>
=item B<increases> I<variable>