]> mj.ucw.cz Git - libucw.git/blobdiff - lib/perl/Configure.pm
Automatic detection of host OS and also partial automatic detection of the
[libucw.git] / lib / perl / Configure.pm
index ee1c83df114397bd71a3a54ac464296d6e4640dd..f251ce62c463c55204131b911ce278f6d9bec07f 100644 (file)
@@ -16,7 +16,7 @@ BEGIN {
        our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
        $VERSION = 1.0;
        @ISA = qw(Exporter);
-       @EXPORT = qw(&Init &Log &Notice &Fail &IsSet &Set &UnSet &Append &Override &Get &Test &Include &Finish &FindFile &TryFindFile);
+       @EXPORT = qw(&Init &Log &Notice &Warn &Fail &IsSet &Set &UnSet &Append &Override &Get &Test &Include &Finish &FindFile &TryFindFile);
        @EXPORT_OK = qw();
        %EXPORT_TAGS = ();
 }
@@ -32,8 +32,12 @@ sub Notice($) {
        print @_ if $vars{"VERBOSE"};
 }
 
+sub Warn($) {
+       print "WARNING: ", @_;
+}
+
 sub Fail($) {
-       Log((shift @_) . "\n");
+       Log("ERROR: " . (shift @_) . "\n");
        exit 1;
 }