source: osm/applications/editors/josm/plugins/github

Last change on this file was 36255, checked in by stoecker, 5 weeks ago

add status

  • Property svn:executable set to *
File size: 623 bytes
Line 
1#!/usr/bin/perl
2
3use strict;
4use Cwd;
5
6open(my $file, '<', 'github_plugins') or die;
7
8if(($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}
16elsif(($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}
28else
29{
30 my $dir = cwd();
31 for my $plugin (<$file>)
32 {
33 print($plugin);
34 chomp($plugin);
35 chdir($plugin);
36 system('git','pull');
37 chdir($dir);
38 }
39}
40close($file);
Note: See TracBrowser for help on using the repository browser.