Adjusted script so it matches case-insensitive 0.3.24
authorMichael Prokop <mika@grml.org>
Sat, 17 Mar 2007 15:03:19 +0000 (16:03 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 17 Mar 2007 15:03:19 +0000 (16:03 +0100)
debian/changelog
grml-tips
grml_tips

index 117d1e9..24a1aee 100644 (file)
@@ -1,6 +1,7 @@
 grml-tips (0.3.24) unstable; urgency=low
 
   * Fix script so it matches only lines with '^-- $'.
+  * Adjusted script so it matches case-insensitive.
 
  -- Michael Prokop <mika@grml.org>  Sat, 17 Mar 2007 16:00:48 +0100
 
index 77f0acf..49e71d2 100755 (executable)
--- a/grml-tips
+++ b/grml-tips
@@ -88,7 +88,7 @@ while (my $line = <$fh>) {
     if ($line !~ /^-- $/) {
        $tip .= $line;
     } else {
-       if ( "$tip" =~ /$pattern/m ) {
+       if ( "$tip" =~ /$pattern/mi ) {
            $tip .= $line;
            print "$tip";
            $tip = '';
index 94a7c97..21ff86c 100644 (file)
--- a/grml_tips
+++ b/grml_tips
@@ -2516,6 +2516,7 @@ Check your current settings via:
 
 Further information:
 --------------------
+
   hwclock(8) tzselect(1) tzconfig(8)
   http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html
   http://wiki.debian.org/TimeZoneChanges