git.annexia.org
/
whenjobs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In XDR, introduce a new type 'string_big_int'.
[whenjobs.git]
/
lib
/
whenexpr.ml
diff --git
a/lib/whenexpr.ml
b/lib/whenexpr.ml
index
4e46968
..
df1665b
100644
(file)
--- a/
lib/whenexpr.ml
+++ b/
lib/whenexpr.ml
@@
-83,6
+83,16
@@
type shell_script = {
sh_script : string;
}
sh_script : string;
}
+type result = {
+ res_job_name : string;
+ res_serial : Big_int.big_int;
+ res_code : int;
+ res_tmpdir : string;
+ res_output : string;
+}
+
+type cleanup = result -> unit
+
type variable =
| T_unit
| T_bool of bool
type variable =
| T_unit
| T_bool of bool
@@
-113,6
+123,7
@@
type job_cond =
type job = {
job_loc : Loc.t;
job_name : string;
type job = {
job_loc : Loc.t;
job_name : string;
+ job_cleanup : cleanup option;
job_cond : job_cond;
job_script : shell_script;
}
job_cond : job_cond;
job_script : shell_script;
}