~ubuntu-branches/ubuntu/karmic/awstats/karmic-security

« back to all changes in this revision

Viewing changes to tools/awstats_buildstaticpages.pl

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard, Charles Fry, Jonas Smedegaard
  • Date: 2005-09-19 22:41:16 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050919224116-6bo795sxx5nsosby
Tags: 6.4-2
[ Charles Fry ]
* New co-maintainer.
* Suggest libgeo-ipfree-perl. Closes: #316126 (thanks to Gunnar Wolf
  <gwolf@gwolf.org>).
* Fixed README.Debian path to configure.pl. Closes: #313093 (thanks to
  Michael De Nil <michael@flex-it.be>).

[ Jonas Smedegaard ]
* Acknowledge NMU. Closes: bug#322591.
* Bump up watch version, and adjust the default command (we have moved
  to SubVerSion).
* Add proto to URL in long description.
* User newer chown syntax in postinst (thanks to lintian).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Launch awstats with -staticlinks option to build all static pages.
4
4
# See COPYING.TXT file about AWStats GNU General Public License.
5
5
#------------------------------------------------------------------------------
6
 
# $Revision: 1.30 $ - $Author: eldy $ - $Date: 2004/01/25 15:19:47 $
 
6
# $Revision: 1.31 $ - $Author: eldy $ - $Date: 2005/02/20 16:11:06 $
7
7
 
8
8
#$|=1;
9
9
#use warnings;          # Must be used in test mode only. This reduce a little process speed
15
15
#------------------------------------------------------------------------------
16
16
# Defines
17
17
#------------------------------------------------------------------------------
18
 
my $REVISION='$Revision: 1.30 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
 
18
my $REVISION='$Revision: 1.31 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
19
19
my $VERSION="1.2 (build $REVISION)";
20
20
 
21
21
# ---------- Init variables --------
52
52
$ShowRobotsStats $ShowSessionsStats $ShowPagesStats $ShowFileTypesStats
53
53
$ShowOSStats $ShowBrowsersStats $ShowOriginStats
54
54
$ShowKeyphrasesStats $ShowKeywordsStats $ShowMiscStats $ShowHTTPErrorsStats
 
55
$BuildReportFormat
55
56
/;
56
57
# ----- Time vars -----
57
58
use vars qw/
277
278
        print "   -dir=outputdir               Output directory for generated pages\n";
278
279
        print "   -diricons=icondir            Relative path to use as icon dir in <img> links\n";
279
280
        print "   -builddate=%YY%MM%DD         Used to add build date in built pages filenames\n";
280
 
        print "   -staticlinksext=xxx          For pages with .xxx extension instead of .html\n";
 
281
        print "   -staticlinksext=xxx          Build pages with .xxx extension (default .html)\n";
281
282
        print "   -buildpdf[=pathtohtmldoc]    Build a PDF file after building HTML pages.\n";
282
283
        print "                                 Output directory must contains icon directory\n";
283
284
        print "                                 when this option is used (need 'htmldoc')\n";
320
321
# Read config file (SiteConfig must be defined)
321
322
&Read_Config($DirConfig);
322
323
 
 
324
if ($BuildReportFormat eq 'xhtml') {
 
325
    $StaticExt="xml";    
 
326
    if ($BuildPDF) {
 
327
        error("Building PDF file is not compatible with building xml output files. Change your parameter BuildReportFormat to html in your config file");
 
328
    }
 
329
}
 
330
 
323
331
# Define list of output files
324
332
if ($ShowDomainsStats) { push @OutputList,'alldomains'; }
325
333
if ($ShowHostsStats) { push @OutputList,'allhosts'; push @OutputList,'lasthosts'; push @OutputList,'unknownip'; }