source: trunk/core/bin/rename @ 1050

Revision 1050, 1.2 KB checked in by OlivierRaginel, 4 years ago (diff)

Item329: Fixed tagline

  • Property svn:executable set to *
Line 
1#!/usr/bin/perl -wT
2#
3# Foswiki - The Free and Open Source Wiki, http://foswiki.org/
4#
5# Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org
6# and Foswiki Contributors.
7#
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. For
12# more details read LICENSE in the root of this distribution.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17#
18# As per the GPL, removal of this notice is prohibited.
19
20
21use strict;
22use warnings;
23
24BEGIN {
25    if ( defined $ENV{GATEWAY_INTERFACE} ) {
26        $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI';
27        use CGI::Carp qw(fatalsToBrowser);
28        $SIG{__DIE__} = \&CGI::Carp::confess;
29    }
30    else {
31        $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI';
32        require Carp;
33        $SIG{__DIE__} = \&Carp::confess;
34    }
35    $ENV{TWIKI_ACTION} = 'rename';
36    @INC = ('.', grep { $_ ne '.' } @INC);
37    require 'setlib.cfg';
38}
39
40use Foswiki;
41use Foswiki::UI;
42$Foswiki::engine->run();
Note: See TracBrowser for help on using the repository browser.