1package solarenvhelper; 2 3#************************************************************************* 4# 5# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6# 7# Copyright 2000, 2010 Oracle and/or its affiliates. 8# 9# OpenOffice.org - a multi-platform office productivity suite 10# 11# This file is part of OpenOffice.org. 12# 13# OpenOffice.org is free software: you can redistribute it and/or modify 14# it under the terms of the GNU Lesser General Public License version 3 15# only, as published by the Free Software Foundation. 16# 17# OpenOffice.org is distributed in the hope that it will be useful, 18# but WITHOUT ANY WARRANTY; without even the implied warranty of 19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20# GNU Lesser General Public License version 3 for more details 21# (a copy is included in the LICENSE file that accompanied this code). 22# 23# You should have received a copy of the GNU Lesser General Public License 24# version 3 along with OpenOffice.org. If not, see 25# <http://www.openoffice.org/license.html> 26# for a copy of the LGPLv3 License. 27# 28#************************************************************************* 29 30use strict; 31use warnings; 32 33BEGIN { 34 use Exporter (); 35 our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS); 36 37 $VERSION = 1.00; 38 # if using RCS/CVS, this may be preferred 39 $VERSION = do { my @r = (q$Revision: 1.1 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker 40 @ISA = qw(Exporter); 41 @EXPORT = qw(&setSolenvPath &getSolenvPath); 42 %EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ], 43 # your exported package globals go here, 44 # as well as any optionally exported functions 45 @EXPORT_OK = ( ); # qw($Var1 %Hashit &func3); 46} 47 48our $sSolenvPath; 49sub setSolenvPath($) 50{ 51 $sSolenvPath = shift; 52} 53sub getSolenvPath() 54{ 55 if ($sSolenvPath) 56 { 57 return $sSolenvPath; 58 } 59 print "INTERNAL ERROR: You must set the solenv path to the performancetest, by call setSolenvPath()\n"; 60 exit 1; 61} 62 631; 64