dustmite watch shell script (.test vs .lookahead.*)

Anonymouse asdf at asdf.net
Fri Apr 6 15:35:59 UTC 2018


The dustmite wiki[0] lists the following example script for use 
to monitor the reduction progress:

> #!/bin/sh
> watch -cn 0.1 "zsh -c 'ls -al $1.reduced/**/*.d ; colordiff -ru 
> $1.reduced $1.test'"

This repeatedly compares the $1.reduced directory with a $1.test 
directory. The dustmite run however doesn't seem to produce a 
(stable) $1.test, only several $1.lookahead.* directories.

> drwxr-xr-x 1 zorael zorael 362 apr  6 17:21 .
> drwxr-xr-x 1 zorael zorael  24 apr  6 17:21 
> source.lookahead.7170
> drwxr-xr-x 1 zorael zorael  24 apr  6 17:21 
> source.lookahead.7169
> drwxr-xr-x 1 zorael zorael  24 apr  6 17:21 source
> -rwxr-xr-x 1 zorael zorael 186 apr  6 10:23 tester

The command used was `dustmite -j2 --strip-comments source 
/abs/path/to/tester`. I'm limiting the number of jobs to 2 so as 
not to run out of memory. dmd is a bit unreasonable.

Why is there no .test directory? Changing the script to 
$1.lookahead.* doesn't work as it passes (jobs+1) arguments to 
colordiff, which only accepts 2. Is there any way to glob only 
one .lookahead.* directory? Some other solution?


[0]: https://github.com/CyberShadow/DustMite/wiki


More information about the Digitalmars-d-learn mailing list