]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - vendor/update
Remove the Kiwi links from the readme.
[user/henk/code/inspircd.git] / vendor / update
index 6f9ff5e86a2e7b6c6b2950edf7de5800035018e7..3c04bc63af0bdea5e019b5454635a38b1871745e 100755 (executable)
 #
 
 
-BEGIN {
-       require 5.10.0;
-       unless (-f 'configure') {
-               print "Error: $0 must be run from the main source directory!\n";
-               exit 1;
-       }
-}
-
-use feature ':5.10';
+use v5.10.0;
 use strict;
 use warnings FATAL => qw(all);
 
@@ -50,8 +42,8 @@ close $fh;
 my ($data, $error) = from_toml $contents;
 print_error "unable to parse $config: $!" if $error;
 
-while (my ($name, $info) = each $data) {
-       print_format "Updating <|GREEN $name|> ...\n";
+while (my ($name, $info) = each %{$data}) {
+       say console_format "Updating <|GREEN $name|> ...";
 
        my $unpackdir = File::Temp->newdir;
        my $vendordir = catdir $RealDir, $name;
@@ -91,7 +83,7 @@ close $fh;
 
 open($fh, '>', $readme) or print_error "unable to write $readme: $!";
 print $fh $contents =~ s/\n\#\#.*//rs;
-for my $name (sort keys $data) {
+for my $name (sort keys %{$data}) {
        my $info = $data->{$name};
        printf $fh "\n## %s\n\n", $name;
        printf $fh "**Author** &mdash; [%s](mailto:%s)\n\n", $info->{author}, $info->{email} if $info->{email};
@@ -101,4 +93,4 @@ for my $name (sort keys $data) {
        my $website = $info->{website} // $info->{git};
        printf $fh "**Website** &mdash; [%s](%s)\n", $website, $website;
 }
-close $fh;
\ No newline at end of file
+close $fh;