lib/TWiki/Configure/Checkers/RCS/ExtOption.pm
author Colas Nahaboo <colas@nahaboo.net>
Mon, 11 Aug 2008 20:33:37 +0200
changeset 2 7bc60a767fa4
parent 0 414e01d06fd5
permissions -rw-r--r--
TWiki-4.2.2 Release
colas@0
     1
#
colas@0
     2
# TWiki Enterprise Collaboration Platform, http://TWiki.org/
colas@0
     3
#
colas@0
     4
# Copyright (C) 2000-2006 TWiki Contributors.
colas@0
     5
#
colas@0
     6
# This program is free software; you can redistribute it and/or
colas@0
     7
# modify it under the terms of the GNU General Public License
colas@0
     8
# as published by the Free Software Foundation; either version 2
colas@0
     9
# of the License, or (at your option) any later version. For
colas@0
    10
# more details read LICENSE in the root of this distribution.
colas@0
    11
#
colas@0
    12
# This program is distributed in the hope that it will be useful,
colas@0
    13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
colas@0
    14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
colas@0
    15
#
colas@0
    16
# As per the GPL, removal of this notice is prohibited.
colas@0
    17
package TWiki::Configure::Checkers::RCS::ExtOption;
colas@0
    18
use base 'TWiki::Configure::Checker';
colas@0
    19
colas@0
    20
use strict;
colas@0
    21
colas@0
    22
sub check {
colas@0
    23
    my $this = shift;
colas@0
    24
colas@0
    25
    return if $TWiki::cfg{RCS}{ExtOption};
colas@0
    26
    $TWiki::cfg{RCS}{ExtOption} = "-x,v" if $TWiki::cfg{OS} eq 'WINDOWS';
colas@0
    27
}
colas@0
    28
colas@0
    29
1;