summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorhubertf <hubertf>2003-11-11 16:30:46 +0000
committerhubertf <hubertf>2003-11-11 16:30:46 +0000
commit59e397118292bcb06f49f1bea5c26a2f06a0a05a (patch)
tree7bc59cfdfb3d895064f84de966c2cb8b71bbe3c4 /sysutils
parente01e7e095ae56f18e3f1fba97c9eaa56e55b704f (diff)
downloadpkgsrc-59e397118292bcb06f49f1bea5c26a2f06a0a05a.tar.gz
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 (limited to 'sysutils')
-rw-r--r--sysutils/dmesg2gif/Makefile4
-rw-r--r--sysutils/dmesg2gif/files/dmesg2gif17
2 files changed, 6 insertions, 15 deletions
diff --git a/sysutils/dmesg2gif/Makefile b/sysutils/dmesg2gif/Makefile
index e1bdab5ca3a..aad5de1087f 100644
--- a/sysutils/dmesg2gif/Makefile
+++ b/sysutils/dmesg2gif/Makefile
@@ -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 --git a/sysutils/dmesg2gif/files/dmesg2gif b/sysutils/dmesg2gif/files/dmesg2gif
index e94f532e577..b86619a4102 100644
--- a/sysutils/dmesg2gif/files/dmesg2gif
+++ b/sysutils/dmesg2gif/files/dmesg2gif
@@ -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>
#
-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 @@ fi
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