X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcreate_usdb.pl;h=5dcd40df1b22f9ee59faa756420111af8f12e81e;hb=63cd679163fe336521e95e8af821b30d4bc1b9e9;hp=a0da7ff413e75aea5619487273d8d8e9c4452645;hpb=08912ec52dee25bbe00aef10387e1822dcd574bc;p=spider.git diff --git a/perl/create_usdb.pl b/perl/create_usdb.pl index a0da7ff4..5dcd40df 100755 --- a/perl/create_usdb.pl +++ b/perl/create_usdb.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # create a USDB file from a standard raw file (which is GZIPPED BTW) # @@ -16,21 +16,16 @@ BEGIN { $root = "/spider"; $root = $ENV{'DXSPIDER_ROOT'} if $ENV{'DXSPIDER_ROOT'}; + unshift @INC, "$root/perl"; # this IS the right way round! unshift @INC, "$root/local"; } -use vars qw($VERSION $BRANCH); -$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); -$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0)); -$main::build += $VERSION; -$main::branch += $BRANCH; - use DXVars; use USDB; die "no input (usdbraw?) files specified\n" unless @ARGV; -USDB::load(@ARGV); +print "\n", USDB::load(@ARGV), "\n"; exit(0);