Subversion Repositories camp_sysinfo_client_3

Rev

Rev 201 | Rev 244 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 201 Rev 222
Line 189... Line 189...
189
# Version 3.6.0 20220607 RWR
189
# Version 3.6.0 20220607 RWR
190
# Changed the way upload works. It automatically now passes an additional parameter, upload_type, which with the new upload
190
# Changed the way upload works. It automatically now passes an additional parameter, upload_type, which with the new upload
191
# script will choose a directory, allowing one script to handle various uploads
191
# script will choose a directory, allowing one script to handle various uploads
192
# additionally, if the key 'postRunScript' is in the config, it is assumed to be the name of a script to be run after sysinfo
192
# additionally, if the key 'postRunScript' is in the config, it is assumed to be the name of a script to be run after sysinfo
193
# completes it's task. This can be used to download/update the program, add new modules, etc..
193
# completes it's task. This can be used to download/update the program, add new modules, etc..
-
 
194
#
-
 
195
# Version 3.6.1 20230308 RWR
-
 
196
# fixed a problem where it did not correctly find the source directory when called from a symbolic link
194
 
197
 
195
 
198
 
196
# find our location and use it for searching for libraries
199
# find our location and use it for searching for libraries
197
BEGIN {
200
BEGIN {
198
   use FindBin;
201
   use FindBin;
199
   use File::Spec;
202
   use File::Spec;
-
 
203
   use Cwd 'abs_path';
-
 
204
   use File::Basename;
200
   use lib File::Spec->catdir($FindBin::Bin);
205
   use lib dirname( abs_path( __FILE__ ) );
201
   eval( 'use YAML::Tiny;' );
206
   eval( 'use YAML::Tiny;' );
202
   eval( 'use Data::Dumper;' );
207
   eval( 'use Data::Dumper;' );
203
}
208
}
204
 
209
 
205
# contains the directory our script is in
210
# contains the directory our script is in
206
my $sourceDir = File::Spec->catdir($FindBin::Bin);
211
my $sourceDir = dirname( abs_path( __FILE__ ) );
207
 
212
 
208
# define the version number
213
# define the version number
209
# see https://metacpan.org/pod/release/JPEACOCK/version-0.97/lib/version.pod
214
# see https://metacpan.org/pod/release/JPEACOCK/version-0.97/lib/version.pod
210
use version;
215
use version;
211
our $VERSION = version->declare("v3.6.0");
216
our $VERSION = version->declare("v3.6.1");
212
our $DATA_VERSION = version->declare( 'v3.0.0' ); # used in sending the data file. sets version of XML/YAML data file
217
our $DATA_VERSION = version->declare( 'v3.0.1' ); # used in sending the data file. sets version of XML/YAML data file
213
 
218
 
214
# see https://perldoc.perl.org/Getopt/Long.html
219
# see https://perldoc.perl.org/Getopt/Long.html
215
use Getopt::Long;
220
use Getopt::Long;
216
# allow -vvn (ie, --verbose --verbose --dryrun)
221
# allow -vvn (ie, --verbose --verbose --dryrun)
217
Getopt::Long::Configure ("bundling");
222
Getopt::Long::Configure ("bundling");