colas@0: #!/usr/bin/perl -wT colas@0: # colas@0: # TWiki Enterprise Collaboration Platform, http://TWiki.org/ colas@0: # colas@0: # Copyright (C) 1999-2007 Peter Thoeny and TWiki Contributors. colas@0: # colas@0: # For licensing info read LICENSE file in the TWiki root. colas@0: # This program is free software; you can redistribute it and/or colas@0: # modify it under the terms of the GNU General Public License colas@0: # as published by the Free Software Foundation; either version 2 colas@0: # of the License, or (at your option) any later version. colas@0: # colas@0: # This program is distributed in the hope that it will be useful, colas@0: # but WITHOUT ANY WARRANTY; without even the implied warranty of colas@0: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the colas@0: # GNU General Public License for more details, published at colas@0: # http://www.gnu.org/copyleft/gpl.html colas@0: # colas@0: # As per the GPL, removal of this notice is prohibited. colas@0: colas@0: BEGIN { colas@0: # See the 'view' script for a description of what this does colas@0: if( $ENV{"SCRIPT_FILENAME"} && colas@0: $ENV{"SCRIPT_FILENAME"} =~ /^(.+)\/[^\/]+$/ ) { colas@0: chdir $1; colas@0: } colas@0: unshift @INC, '.'; colas@0: require 'setlib.cfg'; colas@0: } colas@0: colas@0: use TWiki::UI; colas@0: use TWiki::UI::Manage; colas@0: TWiki::UI::run( \&TWiki::UI::Manage::manage );