whenjobs.git
7 years agoVersion 0.0.3. 0.0.3
Richard W.M. Jones [Thu, 23 Feb 2012 17:27:57 +0000 (17:27 +0000)]
Version 0.0.3.

7 years agoImplement cleanup functions, including 'mailto'.
Richard W.M. Jones [Thu, 23 Feb 2012 16:08:53 +0000 (16:08 +0000)]
Implement cleanup functions, including 'mailto'.

7 years agodaemon: On fork, open stdin/stdout/stderr on /dev/null.
Richard W.M. Jones [Thu, 23 Feb 2012 17:06:32 +0000 (17:06 +0000)]
daemon: On fork, open stdin/stdout/stderr on /dev/null.

7 years agoFix perldoc test in configure script.
Richard W.M. Jones [Thu, 23 Feb 2012 16:47:56 +0000 (16:47 +0000)]
Fix perldoc test in configure script.

7 years agoAdd Whentools library, test, documentation.
Richard W.M. Jones [Thu, 23 Feb 2012 15:07:23 +0000 (15:07 +0000)]
Add Whentools library, test, documentation.

7 years agoAllow job names to be arbitrary OCaml expressions.
Richard W.M. Jones [Thu, 23 Feb 2012 15:06:17 +0000 (15:06 +0000)]
Allow job names to be arbitrary OCaml expressions.

7 years agoRemove dead code.
Richard W.M. Jones [Thu, 23 Feb 2012 15:06:43 +0000 (15:06 +0000)]
Remove dead code.

7 years agoDocument job names.
Richard W.M. Jones [Thu, 23 Feb 2012 14:58:03 +0000 (14:58 +0000)]
Document job names.

7 years agoMove variable checking to check_valid_variable_name function.
Richard W.M. Jones [Thu, 23 Feb 2012 14:56:51 +0000 (14:56 +0000)]
Move variable checking to check_valid_variable_name function.

7 years agoAdd 'len <expr>' operator.
Richard W.M. Jones [Thu, 23 Feb 2012 14:56:05 +0000 (14:56 +0000)]
Add 'len <expr>' operator.

7 years agoRefactor state into a separate [Whenstate] module.
Richard W.M. Jones [Thu, 23 Feb 2012 13:23:25 +0000 (13:23 +0000)]
Refactor state into a separate [Whenstate] module.

The new module contains all jobs and variables.

7 years agoReorder SOURCES for consistency.
Richard W.M. Jones [Thu, 23 Feb 2012 11:35:18 +0000 (11:35 +0000)]
Reorder SOURCES for consistency.

7 years agoSplit large 'Whenutils' module into two (creating new module 'Whenexpr').
Richard W.M. Jones [Thu, 23 Feb 2012 11:24:14 +0000 (11:24 +0000)]
Split large 'Whenutils' module into two (creating new module 'Whenexpr').

7 years agoVersion 0.0.2. 0.0.2
Richard W.M. Jones [Wed, 22 Feb 2012 14:07:30 +0000 (14:07 +0000)]
Version 0.0.2.

7 years agoFix double-scheduled timer problem caused by reloading the jobs file.
Richard W.M. Jones [Wed, 22 Feb 2012 18:15:57 +0000 (18:15 +0000)]
Fix double-scheduled timer problem caused by reloading the jobs file.

7 years agoDisplay version when daemon starts.
Richard W.M. Jones [Wed, 22 Feb 2012 14:42:41 +0000 (14:42 +0000)]
Display version when daemon starts.

7 years agoDistribute the *.cmi files.
Richard W.M. Jones [Wed, 22 Feb 2012 14:07:08 +0000 (14:07 +0000)]
Distribute the *.cmi files.

They are required for compiling the jobs file.

7 years agoAdd an explicit interface config.mli.
Richard W.M. Jones [Wed, 22 Feb 2012 14:13:02 +0000 (14:13 +0000)]
Add an explicit interface config.mli.

7 years agoReorder SOURCES for consistency.
Richard W.M. Jones [Wed, 22 Feb 2012 14:12:45 +0000 (14:12 +0000)]
Reorder SOURCES for consistency.

7 years agoAdd 'make rpm' rule which builds an RPM.
Richard W.M. Jones [Wed, 22 Feb 2012 14:06:24 +0000 (14:06 +0000)]
Add 'make rpm' rule which builds an RPM.

7 years agoMake RPM release in spec file into a variable (RPM_RELEASE).
Richard W.M. Jones [Wed, 22 Feb 2012 14:05:57 +0000 (14:05 +0000)]
Make RPM release in spec file into a variable (RPM_RELEASE).

7 years agoRun jobs with 'set -e' so that they exit on error.
Richard W.M. Jones [Wed, 22 Feb 2012 14:06:44 +0000 (14:06 +0000)]
Run jobs with 'set -e' so that they exit on error.

7 years agoIgnore tarballs.
Richard W.M. Jones [Wed, 22 Feb 2012 13:32:15 +0000 (13:32 +0000)]
Ignore tarballs.

7 years agoAdd a rule to build whenjobs.txt for the website.
Richard W.M. Jones [Wed, 22 Feb 2012 13:31:55 +0000 (13:31 +0000)]
Add a rule to build whenjobs.txt for the website.

7 years agoMore TODO. 0.0.1
Richard W.M. Jones [Wed, 22 Feb 2012 13:18:10 +0000 (13:18 +0000)]
More TODO.

7 years agoPrevent unwanted bytecode stripping by RPM.
Richard W.M. Jones [Wed, 22 Feb 2012 12:04:31 +0000 (12:04 +0000)]
Prevent unwanted bytecode stripping by RPM.

7 years agoAdd prelink blacklist to specfile.
Richard W.M. Jones [Wed, 22 Feb 2012 11:22:37 +0000 (11:22 +0000)]
Add prelink blacklist to specfile.

7 years agoFix EXTRA_DIST in Makefiles.
Richard W.M. Jones [Tue, 21 Feb 2012 19:25:12 +0000 (19:25 +0000)]
Fix EXTRA_DIST in Makefiles.

7 years agoUpdate whenjobs(1) manual page reference section.
Richard W.M. Jones [Tue, 21 Feb 2012 19:14:42 +0000 (19:14 +0000)]
Update whenjobs(1) manual page reference section.

7 years agoComment: compare_values should be able to promote numeric types.
Richard W.M. Jones [Tue, 21 Feb 2012 19:14:19 +0000 (19:14 +0000)]
Comment: compare_values should be able to promote numeric types.

7 years agoUse $SHELL environment variable to run the shell scripts.
Richard W.M. Jones [Tue, 21 Feb 2012 19:13:53 +0000 (19:13 +0000)]
Use $SHELL environment variable to run the shell scripts.

7 years agoAdd a test of many jobs running at once.
Richard W.M. Jones [Tue, 21 Feb 2012 16:04:14 +0000 (16:04 +0000)]
Add a test of many jobs running at once.

7 years agoFix comparisons in 'increases' and 'decreases' functions.
Richard W.M. Jones [Tue, 21 Feb 2012 17:55:47 +0000 (17:55 +0000)]
Fix comparisons in 'increases' and 'decreases' functions.

The tests were the wrong way round.

7 years agoRemove Whenutils.no_job_private and refactor prev-related code.
Richard W.M. Jones [Tue, 21 Feb 2012 17:13:32 +0000 (17:13 +0000)]
Remove Whenutils.no_job_private and refactor prev-related code.

7 years agoAdd unit variable type and 'reloaded()' function.
Richard W.M. Jones [Tue, 21 Feb 2012 16:01:31 +0000 (16:01 +0000)]
Add unit variable type and 'reloaded()' function.

The reloaded() function is true only when we have just loaded a new
file.

This lets you initialize variables, with some caveats.

7 years agoFix error message; arguments were swapped around.
Richard W.M. Jones [Tue, 21 Feb 2012 16:03:33 +0000 (16:03 +0000)]
Fix error message; arguments were swapped around.

7 years agoPrevent users from setting JOBSERIAL and from setting variables with invalid names.
Richard W.M. Jones [Tue, 21 Feb 2012 15:06:49 +0000 (15:06 +0000)]
Prevent users from setting JOBSERIAL and from setting variables with invalid names.

7 years agoAdd a $JOBSERIAL environment variable when jobs run.
Richard W.M. Jones [Tue, 21 Feb 2012 14:47:00 +0000 (14:47 +0000)]
Add a $JOBSERIAL environment variable when jobs run.

This serial number counts up sequentially, allowing us to
test parallel jobs more easily.  It is implemented as an
ordinary variable, so you can write conditions against it.

7 years agoCompare job names intelligently, so "job$9" < "job$10".
Richard W.M. Jones [Tue, 21 Feb 2012 13:57:07 +0000 (13:57 +0000)]
Compare job names intelligently, so "job$9" < "job$10".

7 years agoTest running of jobs.
Richard W.M. Jones [Tue, 21 Feb 2012 10:45:06 +0000 (10:45 +0000)]
Test running of jobs.

7 years agoImplement running of jobs.
Richard W.M. Jones [Tue, 21 Feb 2012 13:42:59 +0000 (13:42 +0000)]
Implement running of jobs.

7 years agoImplement 'whenjobs --daemon-stop'
Richard W.M. Jones [Tue, 21 Feb 2012 13:42:28 +0000 (13:42 +0000)]
Implement 'whenjobs --daemon-stop'

7 years agoAdd new when-expression operators.
Richard W.M. Jones [Tue, 21 Feb 2012 12:48:36 +0000 (12:48 +0000)]
Add new when-expression operators.

< <= > >=
+ - * / mod
increases decreases
prev

7 years agoEnsure when-stmt jobs always run in predictable (name) order.
Richard W.M. Jones [Tue, 21 Feb 2012 12:47:48 +0000 (12:47 +0000)]
Ensure when-stmt jobs always run in predictable (name) order.

7 years agoFurther fixes to parsing tests.
Richard W.M. Jones [Tue, 21 Feb 2012 12:53:07 +0000 (12:53 +0000)]
Further fixes to parsing tests.

This updates commit 96dc3423bc3675797f59c7b582110845ce7a8bf6.

7 years agopa_when: Allow >> in scripts to be escaped as >\>.
Richard W.M. Jones [Tue, 21 Feb 2012 10:44:03 +0000 (10:44 +0000)]
pa_when: Allow >> in scripts to be escaped as >\>.

7 years agopa_when does not need and shouldn't depend on whenlib.cma
Richard W.M. Jones [Tue, 21 Feb 2012 10:43:34 +0000 (10:43 +0000)]
pa_when does not need and shouldn't depend on whenlib.cma
or any other libraries.

7 years agoAdd a TODO file.
Richard W.M. Jones [Tue, 21 Feb 2012 10:43:03 +0000 (10:43 +0000)]
Add a TODO file.

7 years agoIgnore any .depend file.
Richard W.M. Jones [Tue, 21 Feb 2012 10:41:46 +0000 (10:41 +0000)]
Ignore any .depend file.

7 years agoExport string_of_variable utility function.
Richard W.M. Jones [Tue, 21 Feb 2012 08:49:44 +0000 (08:49 +0000)]
Export string_of_variable utility function.

7 years agoMiscellaneous utility functions.
Richard W.M. Jones [Tue, 21 Feb 2012 08:49:01 +0000 (08:49 +0000)]
Miscellaneous utility functions.

7 years agoFix parsing tests.
Richard W.M. Jones [Tue, 21 Feb 2012 08:48:17 +0000 (08:48 +0000)]
Fix parsing tests.

7 years agoFix matching on true/false identifier (for boolean literals).
Richard W.M. Jones [Tue, 21 Feb 2012 08:47:58 +0000 (08:47 +0000)]
Fix matching on true/false identifier (for boolean literals).

7 years agoScheduling of every-jobs.
Richard W.M. Jones [Mon, 20 Feb 2012 16:02:06 +0000 (16:02 +0000)]
Scheduling of every-jobs.

7 years agoAdd filter_map utility.
Richard W.M. Jones [Mon, 20 Feb 2012 15:45:34 +0000 (15:45 +0000)]
Add filter_map utility.

7 years agodocs: Fix tag -> version.
Richard W.M. Jones [Sat, 18 Feb 2012 19:45:08 +0000 (19:45 +0000)]
docs: Fix tag -> version.

7 years agoAC_CHECK_PROG sets variable to empty string when not found.
Richard W.M. Jones [Sat, 18 Feb 2012 17:10:28 +0000 (17:10 +0000)]
AC_CHECK_PROG sets variable to empty string when not found.

7 years agoAdd ocaml.m4
Richard W.M. Jones [Sat, 18 Feb 2012 17:04:37 +0000 (17:04 +0000)]
Add ocaml.m4

7 years agowhenjobs initial version.
Richard W.M. Jones [Fri, 10 Feb 2012 16:47:07 +0000 (16:47 +0000)]
whenjobs initial version.

7 years agoInitial build environment.
Richard W.M. Jones [Fri, 10 Feb 2012 13:39:03 +0000 (13:39 +0000)]
Initial build environment.