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

Last change on this file since 36252 was 36252, checked in by stoecker, 9 months ago

drop external git links

  • Property svn:executable set to *
File size: 398 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}
16else
17{
18 my $dir = cwd();
19 for my $plugin (<$file>)
20 {
21 chomp($plugin);
22 chdir($plugin);
23 system('git','pull');
24 chdir($dir);
25 }
26}
27close($file);
Note: See TracBrowser for help on using the repository browser.