X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=vendor%2Fupdate;h=3c04bc63af0bdea5e019b5454635a38b1871745e;hb=635cb9d65f6d7f6758ae8ed874da00c8d94b6e39;hp=20a4284bcafd808114d2cfab3e15e98c8138eff2;hpb=46390a54b3a0310a4662bae448031d853c61e8d7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/vendor/update b/vendor/update index 20a4284bc..3c04bc63a 100755 --- a/vendor/update +++ b/vendor/update @@ -18,15 +18,7 @@ # -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); @@ -51,7 +43,7 @@ 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"; + say console_format "Updating <|GREEN $name|> ..."; my $unpackdir = File::Temp->newdir; my $vendordir = catdir $RealDir, $name;