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: AnyEvent-0.06 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5538597e20a2f4f34743fc4f88cb3f7e12ec8457;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