2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-15 13:12:19 +00:00
Files
math/doc/graphs/generate.sh
2013-05-05 12:32:36 +00:00

29 lines
670 B
Bash
Executable File

# Copyright John Maddock 2008.
# Use, modification and distribution are subject to the
# Boost Software License, Version 1.0. (See accompanying file
# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Generates PNG files from the SVG masters.
#
# Paths to tools come first, change these to match your system:
#
math2svg='m:\download\open\SVGMath-0.3.1\math2svg.py'
python=/cygdrive/c/Python26/python.exe
inkscape=/cygdrive/c/progra~1/Inkscape/inkscape
# Image DPI:
dpi=96
for svgfile in $*; do
pngfile=$(basename $svgfile .svg).png
echo Generating $pngfile
$inkscape -d $dpi -e $(cygpath -a -w $pngfile) $(cygpath -a -w $svgfile)
done