Merge branch 'mojo' into users.v3j
[spider.git] / perl / create_qsl.pl
index 99b070e4ad9068d256e28ea0287c56f49479bd10..38fccc5a959e3c4af3ed6f8c979f7aa061670bb4 100755 (executable)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Implement a 'GO' database list
 #
 # Copyright (c) 2003 Dirk Koopman G1TLH
 #
-# $Id$
+#
 #
 
 # search local then perl directories
@@ -22,7 +22,7 @@ BEGIN {
 use strict;
 
 use IO::File;
-use DXVars;
+use SysVar;
 use DXUtil;
 use Spot;
 use QSL;
@@ -32,15 +32,14 @@ use vars qw($end $lastyear $lastday $lasttime);
 $end = 0;
 $SIG{TERM} = $SIG{INT} = sub { $end++ };
 
-my $qslfn = "qsl";
+my $qslfn = "dxqsl";
 
 $main::systime = time;
 
-unlink "$root/data/qsl.v1";
-
+QSL::remove_files();
 QSL::init(1) or die "cannot open QSL file";
 
-my $base = "$root/data/spots";
+my $base = localdata("spots");
 
 opendir YEAR, $base or die "$base $!";
 foreach my $year (sort readdir YEAR) {