Last change
on this file since 36318 was 36255, checked in by stoecker, 11 months ago |
add status
|
-
Property svn:executable
set to
*
|
File size:
623 bytes
|
Rev | Line | |
---|
[36252] | 1 | #!/usr/bin/perl
|
---|
| 2 |
|
---|
| 3 | use strict;
|
---|
| 4 | use Cwd;
|
---|
| 5 |
|
---|
| 6 | open(my $file, '<', 'github_plugins') or die;
|
---|
| 7 |
|
---|
| 8 | if(($ARGV[0]||'') eq 'checkout')
|
---|
| 9 | {
|
---|
| 10 | for my $plugin (<$file>)
|
---|
| 11 | {
|
---|
| 12 | chomp($plugin);
|
---|
| 13 | system('git','clone',"https://github.com/JOSM/$plugin");
|
---|
| 14 | }
|
---|
| 15 | }
|
---|
[36255] | 16 | elsif(($ARGV[0]||'') eq 'status')
|
---|
| 17 | {
|
---|
| 18 | my $dir = cwd();
|
---|
| 19 | for my $plugin (<$file>)
|
---|
| 20 | {
|
---|
| 21 | print($plugin);
|
---|
| 22 | chomp($plugin);
|
---|
| 23 | chdir($plugin);
|
---|
| 24 | system('git','status',$plugin);
|
---|
| 25 | chdir($dir);
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
[36252] | 28 | else
|
---|
| 29 | {
|
---|
| 30 | my $dir = cwd();
|
---|
| 31 | for my $plugin (<$file>)
|
---|
| 32 | {
|
---|
[36255] | 33 | print($plugin);
|
---|
[36252] | 34 | chomp($plugin);
|
---|
| 35 | chdir($plugin);
|
---|
| 36 | system('git','pull');
|
---|
| 37 | chdir($dir);
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
| 40 | close($file);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.