Updating web page.
authorJeremiah Foster <jeremiah@test.maemo.org>
Fri, 29 May 2009 14:11:48 +0000 (17:11 +0300)
committerJeremiah Foster <jeremiah@test.maemo.org>
Fri, 29 May 2009 14:11:48 +0000 (17:11 +0300)
maemian
www/index.html

diff --git a/maemian b/maemian
index 376c890..c622f4f 100755 (executable)
--- a/maemian
+++ b/maemian
@@ -44,11 +44,19 @@ use strict;
 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);
@@ -73,12 +81,12 @@ sub file_tests {
       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";
index 0829f8b..8099477 100644 (file)
@@ -5,11 +5,16 @@
   <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">