add module
authorminima <minima>
Mon, 1 Oct 2001 17:21:29 +0000 (17:21 +0000)
committerminima <minima>
Mon, 1 Oct 2001 17:21:29 +0000 (17:21 +0000)
perl/Editable.pm [new file with mode: 0644]
perl/cluster.pl

diff --git a/perl/Editable.pm b/perl/Editable.pm
new file mode 100644 (file)
index 0000000..b0b4e26
--- /dev/null
@@ -0,0 +1,30 @@
+#
+# A module to allow a user to create and (eventually) edit arrays of
+# text and attributes
+#
+# This is used for creating mail messages and user script files
+#
+# It may be sub-classed
+#
+# Copyright (c) 2001 Dirk Koopman G1TLH
+#
+# $Id$
+#
+
+package Editable;
+
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0;
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
+sub new
+{
+       my $pkg = shift;
+       my $class = ref $pkg || $pkg;
+       
+       return {}, $class; 
+}
+
+1;
index 169900cc1afc5f674299d373244dafed42eba6f2..be78ffda1fe472c0ba3c35b9a42b6ab2f26b4f6d 100755 (executable)
@@ -86,6 +86,7 @@ use Timer;
 use Route;
 use Route::Node;
 use Route::User;
+use Editable;
 
 use Data::Dumper;
 use IO::File;
@@ -112,7 +113,7 @@ $starttime = 0;                 # the starting time of the cluster
 use vars qw($VERSION $BRANCH $build $branch);
 $VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
 $BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0;
-$main::build += 13;                            # add an offset to make it bigger than last system
+$main::build += 12;                            # add an offset to make it bigger than last system
 $main::build += $VERSION;
 $main::branch += $BRANCH;