Fix script so it matches only lines with "^-- $".
authorMichael Prokop <mika@grml.org>
Sat, 17 Mar 2007 15:01:16 +0000 (16:01 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 17 Mar 2007 15:01:16 +0000 (16:01 +0100)
debian/changelog
grml-tips
grml_tips

index f42b26f..117d1e9 100644 (file)
@@ -1,3 +1,9 @@
+grml-tips (0.3.24) unstable; urgency=low
+
+  * Fix script so it matches only lines with '^-- $'.
+
+ -- Michael Prokop <mika@grml.org>  Sat, 17 Mar 2007 16:00:48 +0100
+
 grml-tips (0.3.23) unstable; urgency=low
 
   * Add "configure timezone" tip. [Closes: issue157]
index 0103730..77f0acf 100755 (executable)
--- a/grml-tips
+++ b/grml-tips
@@ -85,7 +85,7 @@ my $tip = '';
 my $tip_flag = 0;
 
 while (my $line = <$fh>) {
-    if ($line !~ /^--/) {
+    if ($line !~ /^-- $/) {
        $tip .= $line;
     } else {
        if ( "$tip" =~ /$pattern/m ) {
index 21ff86c..94a7c97 100644 (file)
--- a/grml_tips
+++ b/grml_tips
@@ -2516,7 +2516,6 @@ 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