use warnings;
use Getopt::Long;
use Carp;
-
-unshift @INC, "/home/jeremiah/maemian/lib";
-require Maemian::Output;
-my $lintout = new Maemian::Output;
-
+use lib qw(lib/);
+use Maemian::Output;
+
+# --- Output settings.
+my $out = new Maemian::Output;
+# --- If this is set to true, then you only get msgs
+$out->quiet(0);
+$out->msg("Notice on");
+# --- If this is set to true, then you will get verbose messages.
+$out->verbose(1);
+$out->v_msg("Verbose on");
+
+$out->color("auto");
# --- Command line options
my $inputfile; # --- A file passed to maemian
GetOptions ("inputfile|i=s" => \$inputfile);
print "W: Maintainer email address ($maintainer) might be the same as upstream.\n";
}
else {
- print "N: $maintainer\n";
+ $out->msg("$maintainer");
}
if (grep /BEGIN PGP SIGNED MESSAGE/, @lines) {
- print "N: $filename is signed\n";
+ $out->v_msg("$filename is signed");
}
- # print "\n$dirs\n$filename\n";
+ $out->debug_msg(3, "\n$dirs\n$filename\n");
}
else {
croak "File not readable: $!\n";
<meta name="author" content="jeremiah foster" />
<meta name="copyright" content="Jeremiah Foster 2009" />
<meta name="license" content="Copyright (c) 2009 JEREMIAH FOSTER" />
-<body>
+ <link rel="stylesheet" href="http://static.maemo.org/style_maemo2009/css/master.css" type="text/css" media="screen" charset="utf-8" />
+ <!--[if lte IE 6]>
+ <link rel="stylesheet" href="http://static.maemo.org/style_maemo2009/css/ie.css" type="text/css" media="screen">
+ <![endif]-->
+
+</head><body>
<h4>Hello and welcome to Maemian, the policy checker for Maemo.</h4>
<p>You can browse the repo here <a href="https://git.maemo.org/projects/maemian/gitweb?p=maemian">git repo</a><br>If you want to check out
the code and hack on it, you can clone the repository this way:<br>
-<code>git clone https://git.maemo.org/projects/maemian</code>
+<code style="background: #e0e0e0;">git clone https://git.maemo.org/projects/maemian</code>
<p>You can read the <a href="https://garage.maemo.org/projects/maemian/">summary of the project</a> on the gforge on garage.
<p>Maemian is designed to be a tool to check policy in maemo packages like lintian does for debian packages. The
overall aim is to increase quality in maemo applications. There is a <a href="http://wiki.maemo.org/Extras_repository_process_definition">