Thread Term::Choose - lässt sich das auf Mac OS X installieren? (6 answers)
Opened by Kuerbis at 2012-11-12 07:59

Kuerbis
 2012-11-13 11:40
#163278 #163278
User since
2011-03-20
942 Artikel
BenutzerIn
[default_avatar]
Quote
"How can I indicate that my distribution only works on a particular operating system?"

While it isn't a very elegant solution, the recommend approach is to either die in the Makefile.PL or Build.PL (or BAIL_OUT in a test file) with one of the following messages:

No support for OS
OS unsupported

CPAN Testers tools will look for one of those phrases and will send an NA (Not Available) report for that platform.
(http://wiki.cpantesters.org/wiki/CPANAuthorNotes CPAM Testers Wiki)

Passt das so, wenn ich sagen möchte, dass 'MSWin32' nicht funktioniert?

"t/01-OS_bail_out.t":

Code (perl): (dl )
1
2
3
4
5
6
7
8
use 5.010001;
use strict;
use warnings;
use Test::More;

my bail_out = 'MSWin32';

BAIL_OUT( "No support for $bail_out" ) if $^O eq $bail_out;

View full thread Term::Choose - lässt sich das auf Mac OS X installieren?