~ubuntu-branches/ubuntu/lucid/awstats/lucid-updates

« back to all changes in this revision

Viewing changes to tools/awstats_buildstaticpages.pl

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard, Jonas Smedegaard, Charles Fry
  • Date: 2006-01-15 22:35:07 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060115223507-jtn0gtvack1n8qj2
Tags: 6.5-1
[ Jonas Smedegaard ]
* New upstream release.
  + Recognizes GNUTLS from lynx User-Agent header. Closes: #306130
    (thanks to Dmitry Baryshkov <mitya@school.ioffe.ru>).
  + Geoip shows countries for resolved hostnames. Closes: #317310
    (thanks to Administrator <azhrarn@underhanded.org>).
* Simplify watch file to better work with parser used at qa.d.o.
* Improve cdbs rules:
  + Use quilt (rather than cdbs-internal patch system).
  + Add and enable new local snippets copyright-check and auto-update.
  + Update local snippet buildinfo (fixing its namespace).
* Auto-update debian/control:
  + Tightened build-dependency on cdbs.
  + Added build-dependencies on patchutils and quilt.
* Package is now team-maintained:
  + New maintainer: Debian AWStats Team
    <pkg-awstats-devel@lists.alioth.debian.org>.
  + Add myself as uploader.

[ Charles Fry ]
* Use qa.debian.org SF redirector in watch file.
* Use Homepage instead of Website in debian/control, per DDR 6.2.4.
* Removed patches integrated upstream

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.31 $ - $Author: eldy $ - $Date: 2005/02/20 16:11:06 $
 
6
# $Revision: 1.33 $ - $Author: eldy $ - $Date: 2005/08/23 19:56:35 $
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.31 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
 
18
my $REVISION='$Revision: 1.33 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
19
19
my $VERSION="1.2 (build $REVISION)";
20
20
 
21
21
# ---------- Init variables --------
91
91
        debug("$messagestring",1);
92
92
#       if ($WarningMessages) {
93
93
#       if ($HTMLOutput) {
94
 
#               $messagestring =~ s/\n/\<br\>/g;
95
 
#               print "$messagestring<br>\n";
 
94
#               $messagestring =~ s/\n/\<br \/\>/g;
 
95
#               print "$messagestring<br />\n";
96
96
#       }
97
97
#       else {
98
98
                print "$messagestring\n";
435
435
# Build pdf file
436
436
if ($QueryString =~ /(^|-|&)buildpdf/i) {
437
437
#       my $pdffile=$pages[0]; $pdffile=~s/\.\w+$/\.pdf/;
438
 
        my $command="\"$HtmlDoc\" -t pdf --webpage --quiet --no-title --textfont helvetica --left 16 --bottom 8 --top 8 --browserwidth 800 --headfootsize 8.0 --fontsize 7.0 --header xtx --footer xd/ --outfile awstats.$OutputSuffix.pdf @pages\n";
 
438
        $OutputFile=($OutputDir?$OutputDir:"")."awstats.$OutputSuffix.pdf";
 
439
        my $command="\"$HtmlDoc\" -t pdf --webpage --quiet --no-title --textfont helvetica --left 16 --bottom 8 --top 8 --browserwidth 800 --headfootsize 8.0 --fontsize 7.0 --header xtx --footer xd/ --outfile $OutputFile @pages\n";
439
440
        print "Build PDF file : $command\n";
440
441
        $retour=`$command  2>&1`;
441
 
        my $signal_num=$? & 127;
 
442
    my $signal_num=$? & 127;
442
443
        my $dumped_core=$? & 128;
443
444
        my $exit_value=$? >> 8;
444
445
        if ($? || $retour =~ /error/) {