From a3a42f30e100ecc84165381a71e140bf32284b5a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 16 Jun 2010 19:40:55 +0200 Subject: [PATCH] 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. --- Makefile.PL | 4 ++++ lib/AnyEvent/I3.pm | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5