add version function
authorChristian Arnold <arnold@schlittermann.de>
Wed, 15 Jun 2011 13:39:14 +0200
changeset 2 8a45104fe330
parent 1 5e8475fbfc16
child 3 f36f557048be
add version function
check_rsnapshot.pl
debian/changelog
--- a/check_rsnapshot.pl	Tue Jun 14 12:10:58 2011 +0200
+++ b/check_rsnapshot.pl	Wed Jun 15 13:39:14 2011 +0200
@@ -37,7 +37,7 @@
 sub version($$);
 
 my $ME      = basename $0;
-my $VERSION = "2.1";
+my $VERSION = "2.2";
 
 my %opt = (
     binary  => "/usr/bin/rsnapshot",
@@ -120,6 +120,20 @@
     }
 }
 
+sub version($$) {
+    my $progname = shift;
+    my $version  = shift;
+
+    print <<_VERSION;
+$progname version $version
+Copyright (C) 2011 by Christian Arnold and Schlittermann internet & unix support.
+
+$ME comes with ABSOLUTELY NO WARRANTY. This is free software,
+and you are welcome to redistribute it under certain conditions.
+See the GNU General Public Licence for details.
+_VERSION
+}
+
 =head1 NAME
 
 check_rsnapshot - nagios plugin to check for errors on rsnapshot logfile
@@ -178,7 +192,7 @@
 
 =head1 VERSION
 
-This man page is current for version 2.1 of check_rsnapshot.
+This man page is current for version 2.2 of check_rsnapshot.
 
 =head1 AUTHOR
 
--- a/debian/changelog	Tue Jun 14 12:10:58 2011 +0200
+++ b/debian/changelog	Wed Jun 15 13:39:14 2011 +0200
@@ -1,3 +1,9 @@
+nagios-plugin-rsnapshot (2.2) lenny squeeze; urgency=low
+
+  * add version function 
+
+ -- Christian Arnold <arnold@schlittermann.de>  Wed, 15 Jun 2011 13:38:24 +0200
+
 nagios-plugin-rsnapshot (2.1) lenny squeeze; urgency=low
 
   * intercept of possible mistakes