Rename GP_Context -> GP_Pixmap
[gfxprim.git] / doc / gen_mp.sh
blob27c622c01e1dcca85f87539fd2351237e63e1a15
1 #!/bin/sh
3 # Script to regenerate svgs from metapost
5 # The resulting svg images are stored in git so you need
6 # to run the script only after you changed the metapost
7 # source files.
10 SRC=coordinates
12 echo "$SRC.mp -> $SRC-*.pdf"
13 mptopdf "$SRC.mp"
15 for i in $SRC*.pdf; do
16 SVG=`echo "$i" | sed s/.pdf/.svg/`
17 echo "$i -> $SVG"
18 inkscape -l "$SVG" "$i"
19 rm "$i"
20 done