Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added bogus bin/fop to run it from the cmdline as well as under cgi
- Loading branch information
1 parent
4c456c9
commit c920ea7
Showing
61 changed files
with
4,877 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#! /usr/bin/env perl | ||
# See bottom of file for license and copyright information | ||
use strict; | ||
use warnings; | ||
|
||
use File::Spec; | ||
|
||
BEGIN { | ||
if ( defined $ENV{GATEWAY_INTERFACE} || defined $ENV{MOD_PERL} ) { | ||
$Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; | ||
use CGI::Carp qw(fatalsToBrowser); | ||
$SIG{__DIE__} = \&CGI::Carp::confess; | ||
} | ||
else { | ||
$Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; | ||
require Carp; | ||
$SIG{__DIE__} = \&Carp::confess; | ||
} | ||
my ( $volume, $binDir, $action ) = File::Spec->splitpath(__FILE__); | ||
my $setlib = File::Spec->catpath( $volume, $binDir, 'setlib.cfg' ); | ||
@INC = ( '.', grep { $_ ne '.' } @INC ) unless $binDir; | ||
require $setlib; | ||
$ENV{FOSWIKI_ACTION} = 'fop'; | ||
} | ||
|
||
use Foswiki (); | ||
use Foswiki::UI (); | ||
$Foswiki::engine->run(); | ||
__END__ | ||
Foswiki - The Free and Open Source Wiki, http://foswiki.org/ | ||
Copyright (C) 2008-2010 Foswiki Contributors. Foswiki Contributors | ||
are listed in the AUTHORS file in the root of this distribution. | ||
NOTE: Please extend that file, not this notice. | ||
Additional copyrights apply to some or all of the code in this | ||
file as follows: | ||
Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org | ||
and TWiki Contributors. All Rights Reserved. TWiki Contributors | ||
are listed in the AUTHORS file in the root of this distribution. | ||
This program is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU General Public License | ||
as published by the Free Software Foundation; either version 2 | ||
of the License, or (at your option) any later version. For | ||
more details read LICENSE in the root of this distribution. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
As per the GPL, removal of this notice is prohibited. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,60 @@ | ||
bin/fop 0755 | ||
data/System/XslFoContrib.txt 0644 | ||
lib/Foswiki/Contrib/XslFoContrib/Config.spec 0644 | ||
lib/Foswiki/Contrib/XslFoContrib/DEPENDENCIES 0644 | ||
lib/Foswiki/Contrib/XslFoContrib.pm 0644 | ||
tools/fop/build/fop-hyph.jar 0755 | ||
tools/fop/build/fop.jar 0755 | ||
tools/fop/conf/fop.conf 0755 | ||
tools/fop/conf/fop.xconf 0755 | ||
tools/fop/fop 0755 | ||
tools/fop/fop.bat 0755 | ||
tools/fop/lib/avalon-framework-4.2.0.jar 0755 | ||
tools/fop/lib/batik-all-1.7.jar 0755 | ||
tools/fop/fop.cmd 0755 | ||
tools/fop/fop.js 0755 | ||
tools/fop/KEYS 0755 | ||
tools/fop/lib/avalon-framework-api-4.3.1.jar 0755 | ||
tools/fop/lib/avalon-framework-impl-4.3.1.jar 0755 | ||
tools/fop/lib/avalon-framework.LICENSE.txt 0755 | ||
tools/fop/lib/avalon-framework.NOTICE.TXT 0755 | ||
tools/fop/lib/batik-all-1.8.jar 0755 | ||
tools/fop/lib/batik.LICENSE.txt 0755 | ||
tools/fop/lib/batik.NOTICE.txt 0755 | ||
tools/fop/lib/commons-io-1.3.1.jar 0755 | ||
tools/fop/lib/commons-io.LICENSE.txt 0755 | ||
tools/fop/lib/commons-io.NOTICE.txt 0755 | ||
tools/fop/lib/commons-logging-1.0.4.jar 0755 | ||
tools/fop/lib/commons-logging.LICENSE.txt 0755 | ||
tools/fop/lib/commons-logging.NOTICE.txt 0755 | ||
tools/fop/lib/fontbox-1.8.5.jar 0755 | ||
tools/fop/lib/README.txt 0755 | ||
tools/fop/lib/serializer-2.7.0.jar 0755 | ||
tools/fop/lib/xalan-2.7.0.jar 0755 | ||
tools/fop/lib/xercesImpl-2.7.1.jar 0755 | ||
tools/fop/lib/serializer.LICENSE.txt 0755 | ||
tools/fop/lib/serializer.NOTICE.txt 0755 | ||
tools/fop/lib/xalan-2.7.2.jar 0755 | ||
tools/fop/lib/xalan.BCEL.LICENSE.txt 0755 | ||
tools/fop/lib/xalan.LICENSE.txt 0755 | ||
tools/fop/lib/xalan.NOTICE.txt 0755 | ||
tools/fop/lib/xalan.regexp.LICENSE.txt 0755 | ||
tools/fop/lib/xalan.runtime.LICENSE.txt 0755 | ||
tools/fop/lib/xercesImpl-2.9.1.jar 0755 | ||
tools/fop/lib/xercesImpl.LICENSE.txt 0755 | ||
tools/fop/lib/xercesImpl.NOTICE.txt 0755 | ||
tools/fop/lib/xerces.LICENSE.txt 0755 | ||
tools/fop/lib/xml-apis-1.3.04.jar 0755 | ||
tools/fop/lib/xml-apis-ext-1.3.04.jar 0755 | ||
tools/fop/lib/xmlgraphics-commons-1.5.jar 0755 | ||
tools/fop/lib/xml-apis-ext.LICENSE.dom-documentation.txt 0755 | ||
tools/fop/lib/xml-apis-ext.LICENSE.dom-software.txt 0755 | ||
tools/fop/lib/xml-apis-ext.LICENSE.sac.html 0755 | ||
tools/fop/lib/xml-apis-ext.LICENSE.txt 0755 | ||
tools/fop/lib/xml-apis-ext.NOTICE.txt 0755 | ||
tools/fop/lib/xml-apis-ext.README.dom.txt 0755 | ||
tools/fop/lib/xml-apis.LICENSE.DOM-documentation.html 0755 | ||
tools/fop/lib/xml-apis.LICENSE.DOM-software.html 0755 | ||
tools/fop/lib/xml-apis.LICENSE-SAX.html 0755 | ||
tools/fop/lib/xml-apis.LICENSE.txt 0755 | ||
tools/fop/lib/xml-apis.NOTICE.txt 0755 | ||
tools/fop/lib/xmlgraphics-commons-2.1.jar 0755 | ||
tools/fop/lib/xmlgraphics-commons.LICENSE.txt 0755 | ||
tools/fop/lib/xmlgraphics-commons.NOTICE.txt 0755 | ||
tools/fop/LICENSE 0755 | ||
tools/fop/NOTICE 0755 | ||
tools/fop/README 0755 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/perl -w | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
|
Oops, something went wrong.