X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcreate_usdb.pl;h=8dd130953ac5e73f62195a8a6bdb838250a04ee9;hb=refs%2Fheads%2Fstaging;hp=575babc7b42ad50585a560d9c9b6bad2f850e9d7;hpb=9c415b19aaaf0497e9cc074f3df56f16fe414e82;p=spider.git diff --git a/perl/create_usdb.pl b/perl/create_usdb.pl index 575babc7..8dd13095 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,16 +16,13 @@ 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 SysVar; use USDB; die "no input (usdbraw?) files specified\n" unless @ARGV;