[padb-devel] [padb] r277 committed - Add SVN keywords for the file, URL and date in the comments, revision...
codesite-noreply at google.com
codesite-noreply at google.com
Tue Oct 6 20:10:13 BST 2009
Revision: 277
Author: apittman
Date: Tue Oct 6 12:09:23 2009
Log: Add SVN keywords for the file, URL and date in the comments, revision
in the comment and also in the version string reported to users.
http://code.google.com/p/padb/source/detail?r=277
Modified:
/trunk/src/padb
=======================================
--- /trunk/src/padb Thu Oct 1 14:07:46 2009
+++ /trunk/src/padb Tue Oct 6 12:09:23 2009
@@ -2,6 +2,10 @@
# padb. a simple parallel debugging aid.
+# $URL$
+# $Date$
+# $Revision$
+
# For help and support visit http://padb.pittman.org.uk
# or email padb-users at pittman.org.uk
@@ -273,9 +277,16 @@
# Outer main
# Inner
# Main.
+
+my $svn_revision_string = '$Revision$';
+my $svn_revision = 'unknown';
+
+if ( $svn_revision_string =~ m{(\d+)} ) {
+ $svn_revision = $1;
+}
my $prog = basename $0;
-my $version = '3.0-rc1';
+my $version = "3.n (Revision $svn_revision)";
my %conf;
More information about the padb-devel
mailing list