-Change version to allow a short variant for some purposes

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2214 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-09-19 17:39:06 +00:00
parent 6dacf2db56
commit 0d7b477ede

View File

@ -235,7 +235,7 @@ sub isLinux
=head3 Version
Arguments:
none
Optional 'short' string to request only the version;
Returns:
xcat Version number
Globals:
@ -252,7 +252,12 @@ sub isLinux
sub Version
{
#The following tag tells the build script where to append build info
my $version = "Version 2.1"#XCATSVNBUILDSUBHERE
my $version=shift;
if ($version eq 'short') {
$version = "2.1";
} else {
$version = "Version 2.1"#XCATSVNBUILDSUBHERE
}
;
return $version;
}