lib/TWiki/Configure/Checkers/StoreImpl.pm
changeset 0 414e01d06fd5
equal deleted inserted replaced
-1:000000000000 0:414e01d06fd5
       
     1 #
       
     2 # TWiki Enterprise Collaboration Platform, http://TWiki.org/
       
     3 #
       
     4 # Copyright (C) 2000-2006 TWiki Contributors.
       
     5 #
       
     6 # This program is free software; you can redistribute it and/or
       
     7 # modify it under the terms of the GNU General Public License
       
     8 # as published by the Free Software Foundation; either version 2
       
     9 # of the License, or (at your option) any later version. For
       
    10 # more details read LICENSE in the root of this distribution.
       
    11 #
       
    12 # This program is distributed in the hope that it will be useful,
       
    13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
       
    15 #
       
    16 # As per the GPL, removal of this notice is prohibited.
       
    17 package TWiki::Configure::Checkers::StoreImpl;
       
    18 
       
    19 use strict;
       
    20 
       
    21 use TWiki::Configure::Checker;
       
    22 
       
    23 use base 'TWiki::Configure::Checker';
       
    24 
       
    25 sub check {
       
    26     my $this = shift;
       
    27 
       
    28     my $mess = '';
       
    29     if( $TWiki::cfg{StoreImpl} eq 'RcsWrap') {
       
    30         # Check that GNU diff is found in PATH; used by rcsdiff
       
    31         $mess .= $this->checkGnuProgram('diff');
       
    32         # Check all the RCS programs
       
    33         $mess .= $this->checkRCSProgram('initBinaryCmd');
       
    34         $mess .= $this->checkRCSProgram('initTextCmd');
       
    35         $mess .= $this->checkRCSProgram('tmpBinaryCmd');
       
    36         $mess .= $this->checkRCSProgram('ciCmd');
       
    37         $mess .= $this->checkRCSProgram('ciDateCmd');
       
    38         $mess .= $this->checkRCSProgram('coCmd');
       
    39         $mess .= $this->checkRCSProgram('histCmd');
       
    40         $mess .= $this->checkRCSProgram('infoCmd');
       
    41         $mess .= $this->checkRCSProgram('histCmd');
       
    42         $mess .= $this->checkRCSProgram('diffCmd');
       
    43         $mess .= $this->checkRCSProgram('lockCmd');
       
    44         $mess .= $this->checkRCSProgram('unlockCmd');
       
    45         $mess .= $this->checkRCSProgram('delRevCmd');
       
    46     }
       
    47 
       
    48     return $mess;
       
    49 };
       
    50 
       
    51 1;