Changeset 10860 for branches/Release01x01/CompareRevisionsAddOn/bin/compare
- Timestamp:
- 02/28/11 20:46:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release01x01/CompareRevisionsAddOn/bin/compare
r9941 r10860 3 3 use strict; 4 4 use warnings; 5 6 use File::Spec;7 use FindBin qw( $Bin $Script );8 5 9 6 BEGIN { … … 18 15 $SIG{__DIE__} = \&Carp::confess; 19 16 } 20 my @path = File::Spec->splitpath($Bin); 21 my $setlib = File::Spec->catfile( @path, 'setlib.cfg' ); 22 require $setlib; 23 $Script =~ s/\..*$//; # Remove optional file extension 24 $ENV{FOSWIKI_ACTION} = $Script; 17 $ENV{FOSWIKI_ACTION} = 'compare'; 18 @INC = ( '.', grep { $_ ne '.' } @INC ); 19 require 'setlib.cfg'; 25 20 } 26 21
Note: See TracChangeset
for help on using the changeset viewer.
