Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 5f4176966ef8e7d1e5070daab77372ab > files > 47

openvas-manager-2.0.3-1.fc15.i686.rpm

#!/bin/sh
#
# OpenVAS
# $Id$
# Description: Report generator script: results per threat pie plot.
#
# This report generates a PNG graphics file
# with a pie plot of the numbers of threat counts.
# The XML transformation via XSL with xsltproc
# creates a little Python program which uses the pychart
# module to create the pie chart PNG graphics.
#
# Authors:
# Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
#
# Copyright:
# Copyright (C) 2010 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# or, at your option, any later version as published by the Free
# Software Foundation
#
# 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.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

SRC=`pwd`
TMP=`mktemp -d` || exit 1

xsltproc ./pieplot.xsl $1 > ${TMP}/pieplot.py 2>${TMP}/xlstproc.err \
 && cd ${TMP} 2>/dev/null \
 && python pieplot.py 2>${TMP}/python.err