From: Michael Stapelberg Date: Wed, 16 Jun 2010 17:40:55 +0000 (+0200) Subject: Add check to Makefile to abort in a Windows environment (neither i3 nor unix sockets... X-Git-Tag: 4.14~14^2~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a3a42f30e100ecc84165381a71e140bf32284b5a;p=i3%2Fi3 Add check to Makefile to abort in a Windows environment (neither i3 nor unix sockets available) Hopefully, this will stop CPAN Testers emails about failing tests on windows. --- diff --git a/Makefile.PL b/Makefile.PL index 2082ce24..8b81a065 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -9,4 +9,8 @@ requires 'AnyEvent::Handle'; requires 'AnyEvent::Socket'; requires 'JSON::XS'; +if ($^O eq 'MSWin32') { + die "AnyEvent::I3 cannot be used on win32 (unix sockets are missing)"; +} + WriteAll; diff --git a/lib/AnyEvent/I3.pm b/lib/AnyEvent/I3.pm index 953de81e..61486488 100644 --- a/lib/AnyEvent/I3.pm +++ b/lib/AnyEvent/I3.pm @@ -15,11 +15,11 @@ AnyEvent::I3 - communicate with the i3 window manager =cut -our $VERSION = '0.05'; +our $VERSION = '0.06'; =head1 VERSION -Version 0.05 +Version 0.06 =head1 SYNOPSIS