rc is a thing of beauty.
apologies for HTML in the previous message.
On Wed, Mar 1, 2017 at 1:10 PM, erik quanstrom wrote:
>> while (true)
>> if ($watch)
>> while (!$cmd)
>> $watch || true
>
> rc allows empty conditionals, which are true.
>
> -
> while (true)
> if ($watch)
> while (!$cmd)
> $watch || true
rc allows empty conditionals, which are true.
- erik
runs build upon file change, repeats on failure
#!/usr/bin/env rc
flag e +
cmd = ( $* )
watch = ( inotifywait -q --recursive -e modify -e moved_to -e create -t 3 .
)
while (true)
if ($watch)
while (!$cmd)
$watch || true