sql for granting web_usr roles to breedbase db. Useful when the roles get messed...
[sgn-devtools.git] / update_and_build.pl
blobdcc0a0f223d43e1d65646dd5c8ef90a66dff9f8f
1 #!/usr/bin/env perl
3 use Cwd;
4 use strict;
5 use warnings;
7 my $cwd = getcwd;
8 my @repos;
10 for my $dir (<*/>) {
11 push @repos, $dir if -e "$dir/.svn";
14 for my $repo (@repos) {
15 chdir $repo;
16 print "git rebasing: $repo\n";
17 system("git pull --rebase origin");
18 system("perl Build.PL");
19 system("./Build installdeps");
20 chdir $cwd;
23 print "No svn repos found\n" unless @repos;
25 =head1 NAME
27 update_and_build.pl - update all subversion repos in the current directory and run installdeps
29 =head1 SYNOPSIS
31 update_and_build.pl
33 Options:
35 none yet
37 =head1 MAINTAINER
39 Jonathan "Duke" Leto
41 =head1 AUTHOR(S)
43 Jonathan "Duke" Leto <jonathan@leto.net>
45 =head1 COPYRIGHT & LICENSE
47 Copyright 2009 The Boyce Thompson Institute for Plant Research
49 This program is free software; you can redistribute it and/or modify
50 it under the same terms as Perl itself.
52 =cut