use changes from command-line
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 1 Jun 2010 18:38:48 +0000 (20:38 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 1 Jun 2010 18:38:48 +0000 (20:38 +0200)
script/changes

index 46ea6cc..94bd426 100755 (executable)
@@ -9,10 +9,12 @@ use Mojo::Client;
 my $url = 'http://localhost:3000/data/edit';
 my $max = 1;
 
+my @changes = @ARGV;
+
 my $t = Mojo::Client->new;
 $t->max_redirects( 1 );
 
-foreach my $c ( glob '/tmp/changes/*.data.edit' ) {
+foreach my $c ( @changes ) {
 
        print "# $c\n";