summaryrefslogtreecommitdiff
path: root/util/notime.pl
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-06 22:57:13 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-06 22:57:13 -0800
commit1bb1ce141783168d44a38cd1bb6b822eb13114fc (patch)
treeb72d5afb9da6d9e92e685fb7a689342491600180 /util/notime.pl
downloadlzo-1bb1ce141783168d44a38cd1bb6b822eb13114fc.tar.gz
lzo-1bb1ce141783168d44a38cd1bb6b822eb13114fc.tar.bz2
lzo-1bb1ce141783168d44a38cd1bb6b822eb13114fc.zip
Imported Upstream version 2.03upstream/2.03
Diffstat (limited to 'util/notime.pl')
-rw-r--r--util/notime.pl26
1 files changed, 26 insertions, 0 deletions
diff --git a/util/notime.pl b/util/notime.pl
new file mode 100644
index 0000000..46eb459
--- /dev/null
+++ b/util/notime.pl
@@ -0,0 +1,26 @@
+#! /usr/bin/perl
+##
+## vi:ts=4
+##
+##---------------------------------------------------------------------------##
+##
+## Author:
+## Markus F.X.J. Oberhumer <markus@oberhumer.com>
+##
+## Description:
+## Remove timing values from a table created by table.pl
+##
+## Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer
+##
+##---------------------------------------------------------------------------##
+
+
+while (<>) {
+ if (substr($_,56) =~ /^\s+[\d\.]+\s+[\d\.]+\s+\|\s*\n$/) {
+ substr($_,56) = " 0.000 0.000 |\n";
+ }
+ print;
+}
+
+exit(0);
+