bin/manage
changeset 0 414e01d06fd5
child 1 e2915a7cbdfa
equal deleted inserted replaced
-1:000000000000 0:414e01d06fd5
       
     1 #!/usr/bin/perl -wT
       
     2 #
       
     3 # TWiki Enterprise Collaboration Platform, http://TWiki.org/
       
     4 #
       
     5 # Copyright (C) 1999-2007 Peter Thoeny and TWiki Contributors.
       
     6 #
       
     7 # For licensing info read LICENSE file in the TWiki root.
       
     8 # This program is free software; you can redistribute it and/or
       
     9 # modify it under the terms of the GNU General Public License
       
    10 # as published by the Free Software Foundation; either version 2
       
    11 # of the License, or (at your option) any later version.
       
    12 #
       
    13 # This program is distributed in the hope that it will be useful,
       
    14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    16 # GNU General Public License for more details, published at
       
    17 # http://www.gnu.org/copyleft/gpl.html
       
    18 #
       
    19 # As per the GPL, removal of this notice is prohibited.
       
    20 
       
    21 BEGIN {
       
    22     # See the 'view' script for a description of what this does
       
    23     if( $ENV{"SCRIPT_FILENAME"} &&
       
    24         $ENV{"SCRIPT_FILENAME"} =~ /^(.+)\/[^\/]+$/ ) {
       
    25         chdir $1;
       
    26     }
       
    27     unshift @INC, '.';
       
    28     require 'setlib.cfg';
       
    29 }
       
    30 
       
    31 use TWiki::UI;
       
    32 use TWiki::UI::Manage;
       
    33 TWiki::UI::run( \&TWiki::UI::Manage::manage );