* Update copyright file (adjusted address of fsfs). 0.3-2
authorMichael Prokop <mika@grml.org>
Sat, 11 Nov 2006 18:27:10 +0000 (19:27 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 11 Nov 2006 18:27:10 +0000 (19:27 +0100)
  * Added manpage for sysdump.
  * sysdump: do not exit on error opening file(s) but print warning
    instead.

debian/changelog
debian/copyright
debian/rules
sysdump
sysdump.8 [new file with mode: 0644]

index 43b4477..07821ff 100644 (file)
@@ -3,6 +3,10 @@ grml-hwinfo (0.3-2) unstable; urgency=low
   * Use "Architecture: all" in debian/control to support architectures
     not running on x86 as well.
   * Bumb Standard Version to 3.7.2 (no further changes). 
+  * Update copyright file (adjusted address of fsfs).
+  * Added manpage for sysdump.
+  * sysdump: do not exit on error opening file(s) but print warning
+    instead.
 
  -- Michael Prokop <mika@grml.org>  Sat, 11 Nov 2006 19:12:39 +0100
 
index d159fb4..5336695 100644 (file)
@@ -7,21 +7,22 @@ Copyright Holder: Michael Prokop <mika@grml.org>
 
 License:
 
-   This software is copyright (c) 2004-2005 by Michael Prokop.
+   This software is copyright (c) 2003++ by Michael Prokop.
 
-   This package is free software; you can redistribute it and/or modify
+   This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; version 2 dated June, 1991.
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
 
-   This package is distributed in the hope that it will be useful,
+   This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this package; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA.
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
+   USA.
 
 On Debian GNU/Linux systems, the complete text of the GNU General
 Public License can be found in `/usr/share/common-licenses/GPL'.
index 37df8fc..4c452fb 100755 (executable)
@@ -43,7 +43,7 @@ binary-arch: build install
        dh_testroot
        dh_installchangelogs 
        dh_installdocs
-       dh_installman grml-hwinfo.1
+       dh_installman grml-hwinfo.1 sysdump.8
        dh_link
        dh_strip
        dh_compress
diff --git a/sysdump b/sysdump
index 1fd3e0e..17c2b9f 100755 (executable)
--- a/sysdump
+++ b/sysdump
@@ -62,7 +62,7 @@ sub dump_value($$)
        my $level = shift;
        my $file = shift;
 
-       open (FILE, "<$file") || die "can't open $file: $!";
+       open (FILE, "<$file") || print "can't open $file: $!";
 
        my $value;
        {       local $/;
diff --git a/sysdump.8 b/sysdump.8
new file mode 100644 (file)
index 0000000..4dceced
--- /dev/null
+++ b/sysdump.8
@@ -0,0 +1,23 @@
+.TH SYSDUMP 8
+.SH NAME
+sysdump \- dump /sys to a textformat
+.SH SYNOPSIS
+.B sysdump
+.SH DESCRIPTION
+This manual page documents briefly the
+.B sysdump
+command.
+.PP
+\fBsysdump\fP is a perl script that tries to read all files in the
+sys filesystem (known as the files behind /sys) and dumps the content
+found in present files to stdout. The script is used inside grml-hwinfo.
+.SH OPTIONS
+sysdump does not support any options.
+.SH SEE ALSO
+.BR grml-hwinfo (1).
+.br
+.SH AUTHOR
+sysdump was written by David Schmitt <david@schmitt.edv-bus.at>.
+.PP
+This manual page was written by Michael Prokop <mika@grml.org>
+for the grml project (but may be used by others).