summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/mp3d/create_animation.sh
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-03-20 22:13:14 +0000
committerKarl Berry <karl@freefriends.org>2011-03-20 22:13:14 +0000
commit37600df1d07111cae53fa34af6a84510437d2ef2 (patch)
treebc578e650b3fb83bb0d99d0f5ef32faa6fb06a25 /Master/texmf-dist/doc/metapost/mp3d/create_animation.sh
parentb6cf76ded2c5eac72ae87d5a1554e9f886698a26 (diff)
mp3d license statement (19mar11)
git-svn-id: svn://tug.org/texlive/trunk@21771 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/metapost/mp3d/create_animation.sh')
-rw-r--r--Master/texmf-dist/doc/metapost/mp3d/create_animation.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/metapost/mp3d/create_animation.sh b/Master/texmf-dist/doc/metapost/mp3d/create_animation.sh
new file mode 100644
index 00000000000..e99ca7383ca
--- /dev/null
+++ b/Master/texmf-dist/doc/metapost/mp3d/create_animation.sh
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+/bin/rm -f animpoly.log
+for i in `ls animpoly.*| grep 'animpoly.[0-9]'`;do
+echo $i
+echo '=============='
+awk < $i '{print} /^%%Page: /{print "142 123 translate\n"}' > $i.ps
+gs -sDEVICE=ppmraw -sPAPERSIZE=a4 -dNOPAUSE -r36 -sOutputFile=$i.ppm -q -- $i.ps
+/bin/rm -f $i.ps
+ppmquant 32 $i.ppm | pnmcut 0 114 141 307 | ppmtogif > `expr $i.ppm : '\(.*\)ppm'`gif
+/bin/rm -f $i.ppm
+done
+/bin/rm -f animpoly.gif
+gifmerge -10 -l1000 animpoly.*.gif > animpoly.gif
+/bin/rm -f animpoly.*.gif