1*b1cdbd2cSJim Jagielskipackage solarenvhelper; 2*b1cdbd2cSJim Jagielski 3*b1cdbd2cSJim Jagielski#************************************************************** 4*b1cdbd2cSJim Jagielski# 5*b1cdbd2cSJim Jagielski# Licensed to the Apache Software Foundation (ASF) under one 6*b1cdbd2cSJim Jagielski# or more contributor license agreements. See the NOTICE file 7*b1cdbd2cSJim Jagielski# distributed with this work for additional information 8*b1cdbd2cSJim Jagielski# regarding copyright ownership. The ASF licenses this file 9*b1cdbd2cSJim Jagielski# to you under the Apache License, Version 2.0 (the 10*b1cdbd2cSJim Jagielski# "License"); you may not use this file except in compliance 11*b1cdbd2cSJim Jagielski# with the License. You may obtain a copy of the License at 12*b1cdbd2cSJim Jagielski# 13*b1cdbd2cSJim Jagielski# http://www.apache.org/licenses/LICENSE-2.0 14*b1cdbd2cSJim Jagielski# 15*b1cdbd2cSJim Jagielski# Unless required by applicable law or agreed to in writing, 16*b1cdbd2cSJim Jagielski# software distributed under the License is distributed on an 17*b1cdbd2cSJim Jagielski# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18*b1cdbd2cSJim Jagielski# KIND, either express or implied. See the License for the 19*b1cdbd2cSJim Jagielski# specific language governing permissions and limitations 20*b1cdbd2cSJim Jagielski# under the License. 21*b1cdbd2cSJim Jagielski# 22*b1cdbd2cSJim Jagielski#************************************************************** 23*b1cdbd2cSJim Jagielski 24*b1cdbd2cSJim Jagielski 25*b1cdbd2cSJim Jagielski 26*b1cdbd2cSJim Jagielskiuse strict; 27*b1cdbd2cSJim Jagielskiuse warnings; 28*b1cdbd2cSJim Jagielski 29*b1cdbd2cSJim JagielskiBEGIN { 30*b1cdbd2cSJim Jagielski use Exporter (); 31*b1cdbd2cSJim Jagielski our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS); 32*b1cdbd2cSJim Jagielski 33*b1cdbd2cSJim Jagielski $VERSION = 1.00; 34*b1cdbd2cSJim Jagielski # if using RCS/CVS, this may be preferred 35*b1cdbd2cSJim Jagielski $VERSION = do { my @r = (q$Revision: 1.1 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker 36*b1cdbd2cSJim Jagielski @ISA = qw(Exporter); 37*b1cdbd2cSJim Jagielski @EXPORT = qw(&setSolenvPath &getSolenvPath); 38*b1cdbd2cSJim Jagielski %EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ], 39*b1cdbd2cSJim Jagielski # your exported package globals go here, 40*b1cdbd2cSJim Jagielski # as well as any optionally exported functions 41*b1cdbd2cSJim Jagielski @EXPORT_OK = ( ); # qw($Var1 %Hashit &func3); 42*b1cdbd2cSJim Jagielski} 43*b1cdbd2cSJim Jagielski 44*b1cdbd2cSJim Jagielskiour $sSolenvPath; 45*b1cdbd2cSJim Jagielskisub setSolenvPath($) 46*b1cdbd2cSJim Jagielski{ 47*b1cdbd2cSJim Jagielski $sSolenvPath = shift; 48*b1cdbd2cSJim Jagielski} 49*b1cdbd2cSJim Jagielskisub getSolenvPath() 50*b1cdbd2cSJim Jagielski{ 51*b1cdbd2cSJim Jagielski if ($sSolenvPath) 52*b1cdbd2cSJim Jagielski { 53*b1cdbd2cSJim Jagielski return $sSolenvPath; 54*b1cdbd2cSJim Jagielski } 55*b1cdbd2cSJim Jagielski print "INTERNAL ERROR: You must set the solenv path to the performancetest, by call setSolenvPath()\n"; 56*b1cdbd2cSJim Jagielski exit 1; 57*b1cdbd2cSJim Jagielski} 58*b1cdbd2cSJim Jagielski 59*b1cdbd2cSJim Jagielski1; 60