]> mj.ucw.cz Git - bex.git/blob - benq
Building infrastructure...
[bex.git] / benq
1 #!/usr/bin/perl
2 # Batch EXecutor 2.0
3 # (c) 2011 Martin Mares <mj@ucw.cz>
4
5 use strict;
6 use warnings;
7
8 use lib 'lib';
9 use BEX;
10
11 my $job = BEX::Job->new;
12 my $fn = $job->save;
13 system "editor", $fn;
14 ## FIXME: Check exit code of editor
15 $job = BEX::Job->new_from_file($fn);
16 ## FIXME: Compare and exit if no changes
17
18 my $queue = BEX::Queue->new;
19 for my $m (keys %BEX::Config::machines) {
20         $queue->enqueue($m, $job);
21 }
22
23 unlink $fn;