|
Last change
on this file since 36253 was 36252, checked in by stoecker, 20 months ago |
|
drop external git links
|
-
Property svn:executable
set to
*
|
|
File size:
398 bytes
|
| Line | |
|---|
| 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 | }
|
|---|
| 16 | else
|
|---|
| 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 | }
|
|---|
| 27 | close($file);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.