[Pkg-ocaml-maint-commits] r931 - packages/advi/branches/split/debian/patches

Helge Kreutzmann kreutzm-guest@costa.debian.org
Fri, 28 Jan 2005 15:40:25 +0100


Author: kreutzm-guest
Date: 2005-01-28 15:40:24 +0100 (Fri, 28 Jan 2005)
New Revision: 931

Added:
   packages/advi/branches/split/debian/patches/xanim_to_animate.diff
Log:
Convert the xanim calls to animate calls in demo.sty


Added: packages/advi/branches/split/debian/patches/xanim_to_animate.diff
===================================================================
--- packages/advi/branches/split/debian/patches/xanim_to_animate.diff	2005-01-28 14:39:32 UTC (rev 930)
+++ packages/advi/branches/split/debian/patches/xanim_to_animate.diff	2005-01-28 14:40:24 UTC (rev 931)
@@ -0,0 +1,38 @@
+#! /bin/sh -e
+## no_bubble.dpatch by <kreutzm@itp.uni-hannover.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: replace on xanim call by animate call to remove reference to
+## DP: software not in Debian (appears functionality wise identical)
+
+if [ $# -lt 1 ]; then
+    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+    exit 1
+fi
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
+
+case "$1" in
+    -patch) patch -p1 ${patch_opts} < $0;;
+    -unpatch) patch -R -p1 ${patch_opts} < $0;;
+    *)
+        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+        exit 1;;
+esac
+
+exit 0
+
+@DPATCH@
+--- advi-1.6.0-gurke01/test/demo.sty	2004-03-29 19:27:00.000000000 +0200
++++ advi-1.6.0/test/demo.sty	2005-01-27 17:03:59.055552960 +0100
+@@ -59,7 +59,8 @@
+ % xanim +Sx@x +Sy@y +W @p advilogo.anim.gif
+ %
+ \hfill{\adviembed[sticky=advianim,width=1.56cm,height=1.824cm]%
+-{xanim -Zr +q +Sx@w +Sy@h +W@p +Wx@x +Wy@y advilogo.anim.gif}}
++%{xanim -Zr +q +Sx@w +Sy@h +W@p +Wx@x +Wy@y advilogo.anim.gif}}
++{animate -geometry @g! -window @p advilogo.anim.gif}}
+ }\medskip \leftline
+  {\hbox to 3em {\ifnum \thepage >1\theTarget [0]{First}{1}\fi\hfil}
+   \hbox to 3em {\ifnum \thepage >1\theTarget {Prev}{-1}\fi\hfil}