From b077980164409077a41fa588f2ec28510a4a8c8b Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 10 Jun 2008 16:39:20 +0000 Subject: [PATCH] add Version routine git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1618 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index cefb75b85..6679b746d 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -205,6 +205,30 @@ sub isLinux #------------------------------------------------------------------------------- +=head3 Version + Arguments: + none + Returns: + xcat Version number + Globals: + none + Error: + none + Example: + $version=xCAT::Utils->Version(); + Comments: + none +=cut + +#------------------------------------------------------------------------------- +sub Version +{ + my $version = "Version 2.1\n"; + return $version; +} + +#------------------------------------------------------------------------------- + =head3 make_node_list_file Makes a node list file. @@ -2337,5 +2361,24 @@ sub isMounted } return 0; } +#------------------------------------------------------------------------------- +=head3 Version + Returns the Version of the release, to be used for the version flag on + each command + Arguments: + None + Returns: + version number + Globals: + none + Error: + Example: + my $version= xCAT::Version(); +#------------------------------------------------------------------------------- +sub Version +{ +my $version="Version 2.1"; + return $version; +} 1;