pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Bump dmesg2gif to V1.3. Changes:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0f051c4333b8
branches:  trunk
changeset: 463454:0f051c4333b8
user:      hubertf <hubertf%pkgsrc.org@localhost>
date:      Tue Nov 11 16:30:46 2003 +0000

description:
Bump dmesg2gif to V1.3. Changes:
 * remove use of tmp file, thanks to Robert Elz for the hint
 * fix problem with ':' in wrong place, found by Matthias Scheler

diffstat:

 doc/CHANGES                        |   3 ++-
 sysutils/dmesg2gif/Makefile        |   4 ++--
 sysutils/dmesg2gif/files/dmesg2gif |  17 ++++-------------
 3 files changed, 8 insertions(+), 16 deletions(-)

diffs (63 lines):

diff -r 12802a09d516 -r 0f051c4333b8 doc/CHANGES
--- a/doc/CHANGES       Tue Nov 11 16:10:36 2003 +0000
+++ b/doc/CHANGES       Tue Nov 11 16:30:46 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.3814 2003/11/11 12:00:16 wiz Exp $
+$NetBSD: CHANGES,v 1.3815 2003/11/11 16:30:46 hubertf Exp $
 
 Changes to the packages collection and infrastructure in 2003:
 
@@ -4342,3 +4342,4 @@
        Updated links to 2.1.0.14 [wiz 2003-11-11]
        Updated links-gui to 2.1.0.14 [wiz 2003-11-11]
        Updated superlu to 3.0 [wiz 2003-11-11]
+       Updated dmesg2gif to 1.3 [hubertf 2003-11-11]
diff -r 12802a09d516 -r 0f051c4333b8 sysutils/dmesg2gif/Makefile
--- a/sysutils/dmesg2gif/Makefile       Tue Nov 11 16:10:36 2003 +0000
+++ b/sysutils/dmesg2gif/Makefile       Tue Nov 11 16:30:46 2003 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2003/11/02 19:58:00 cube Exp $
+# $NetBSD: Makefile,v 1.8 2003/11/11 16:30:46 hubertf Exp $
 #
 
-DISTNAME=              dmesg2gif-1.2
+DISTNAME=              dmesg2gif-1.3
 WRKSRC=                        ${WRKDIR}
 CATEGORIES=            sysutils
 MASTER_SITES=          # empty
diff -r 12802a09d516 -r 0f051c4333b8 sysutils/dmesg2gif/files/dmesg2gif
--- a/sysutils/dmesg2gif/files/dmesg2gif        Tue Nov 11 16:10:36 2003 +0000
+++ b/sysutils/dmesg2gif/files/dmesg2gif        Tue Nov 11 16:30:46 2003 +0000
@@ -1,14 +1,9 @@
 #!/bin/sh
-# $NetBSD: dmesg2gif,v 1.3 2003/10/20 17:11:43 hubertf Exp $
+# $NetBSD: dmesg2gif,v 1.4 2003/11/11 16:30:46 hubertf Exp $
 #
 # Copyright (c) 2003 Hubert Feyrer <hubertf%netbsd.org@localhost>
 #
 
-tmp=/tmp/dmesg2gif.$$.dot
-
-# Clean up things on ^C
-trap "rm -r $tmp ; exit 1" INT
-
 if [ -t 0 -o -t 1 ]
 then
        echo 2>&1 "Usage: cat /var/run/dmesg.boot | $0 | xv -"
@@ -21,13 +16,9 @@
        cat \
        | grep -v ^# \
        | perl -ne 'if(/^(\S*) at (\S*) *.*/){
-                       $from=$1; 
-                       $to=$2; 
-                       $to=~s/://; 
+                       ( $from = $1 ) =~ s/://g; 
+                       ( $to   = $2 ) =~ s/://g; 
                        print "\t$from -> $to\n"; 
                }'
        echo "}"
-) > $tmp
-dot -Tgif $tmp
-
-rm $tmp
+) | tee /tmp/x.debug | dot -Tgif



Home | Main Index | Thread Index | Old Index