X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcreate_usdb.pl;h=5dcd40df1b22f9ee59faa756420111af8f12e81e;hb=8d006937d3630d245d81b57c4e5106431f761337;hp=575babc7b42ad50585a560d9c9b6bad2f850e9d7;hpb=9c415b19aaaf0497e9cc074f3df56f16fe414e82;p=spider.git diff --git a/perl/create_usdb.pl b/perl/create_usdb.pl index 575babc7..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,15 +16,10 @@ 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;