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

Helge Kreutzmann kreutzm-guest@costa.debian.org
Mon, 24 Jan 2005 09:14:46 +0100


Author: kreutzm-guest
Date: 2005-01-24 09:14:46 +0100 (Mon, 24 Jan 2005)
New Revision: 924

Added:
   packages/advi/branches/split/debian/patches/fix_test_includes.dpatch
Log:
To properly get the figures, we link them into the test-directory
during build; need to adjust includes accordingly


Added: packages/advi/branches/split/debian/patches/fix_test_includes.dpatch
===================================================================
--- packages/advi/branches/split/debian/patches/fix_test_includes.dpatch	2005-01-24 08:13:49 UTC (rev 923)
+++ packages/advi/branches/split/debian/patches/fix_test_includes.dpatch	2005-01-24 08:14:46 UTC (rev 924)
@@ -0,0 +1,236 @@
+#! /bin/sh -e
+## fix_test_includes.dpatch by <kreutzm@itp.uni-hannover.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Switch all includes in the test/ directory to later have the
+## DP: figures included in /usr/share .. as well.
+
+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@
+diff -urN advi-1.6.0.orig/test/background.tex advi-1.6.0/test/background.tex
+--- advi-1.6.0.orig/test/background.tex	2004-07-16 22:58:59.000000000 +0200
++++ advi-1.6.0/test/background.tex	2005-01-01 15:29:58.000000000 +0100
+@@ -983,7 +983,7 @@
+ 
+ ~\vfill
+ \begin{center}
+-\includegraphics[width=0.5\textwidth]{../tex/advilogo.eps}\\
++\includegraphics[width=0.5\textwidth]{advilogo.eps}\\
+ {\Large \bf That's all, folks!!}
+ \end{center}
+ \vfill
+Binärdateien advi-1.6.0.orig/test/color.dvi and advi-1.6.0/test/color.dvi sind verschieden.
+diff -urN advi-1.6.0.orig/test/color.tex advi-1.6.0/test/color.tex
+--- advi-1.6.0.orig/test/color.tex	2004-07-16 22:58:59.000000000 +0200
++++ advi-1.6.0/test/color.tex	2005-01-01 15:37:08.000000000 +0100
+@@ -1204,7 +1204,7 @@
+ 
+ ~\vfill
+ \begin{center}
+-\includegraphics[width=0.5\textwidth]{../tex/advilogo.eps}\\
++\includegraphics[width=0.5\textwidth]{advilogo.eps}\\
+ {\Large \bf That's all, folks!!}
+ \end{center}
+ \vfill
+diff -urN advi-1.6.0.orig/test/demo2.tex advi-1.6.0/test/demo2.tex
+--- advi-1.6.0.orig/test/demo2.tex	2003-11-25 16:51:00.000000000 +0100
++++ advi-1.6.0/test/demo2.tex	2005-01-01 15:48:16.000000000 +0100
+@@ -123,8 +123,8 @@
+ 
+ \subsection*{EPS Bitmap inclusion}
+ \begin{center}
+-\includegraphics[width=0.15\textwidth,height=0.15\textwidth]{../tex/caml.eps}
+-\includegraphics[width=0.3\textwidth,height=0.15\textwidth]{../tex/caml.eps}  
++\includegraphics[width=0.15\textwidth,height=0.15\textwidth]{caml.eps}
++\includegraphics[width=0.3\textwidth,height=0.15\textwidth]{caml.eps}  
+ \end{center}
+ 
+ \subsection*{GPIC: Pictures for \TeX}
+diff -urN advi-1.6.0.orig/test/demo.tex advi-1.6.0/test/demo.tex
+--- advi-1.6.0.orig/test/demo.tex	2004-03-27 15:16:15.000000000 +0100
++++ advi-1.6.0/test/demo.tex	2005-01-01 16:26:12.000000000 +0100
+@@ -98,8 +98,8 @@
+ 
+ \medskip
+ 
+-\includegraphics[width=0.1\textwidth]{../tex/caml.eps}
+-\includegraphics[width=0.2\textwidth,height=0.09\textwidth]{../tex/caml.eps}
++\includegraphics[width=0.1\textwidth]{caml.eps}
++\includegraphics[width=0.2\textwidth,height=0.09\textwidth]{caml.eps}
+ \framebox{\includegraphics[width=0.1\textwidth]{world}}
+ \end{quote}
+ 
+@@ -742,32 +742,32 @@
+ \advirecord{15}{\textcolor{c1}{changing text at each space}}\\
+ \advirecord{2}{\textcolor{c3}{you can also use pictures}}\\
+ \advirecord{31}{\
+-{\includegraphics[width=0.02\textwidth]{../tex/caml.eps}}}\\
++{\includegraphics[width=0.02\textwidth]{caml.eps}}}\\
+ \advirecord{32}{\
+-{\includegraphics[width=0.02\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.03\textwidth]{../tex/caml.eps}}}\\
++{\includegraphics[width=0.02\textwidth]{caml.eps}}\
++{\includegraphics[width=0.03\textwidth]{caml.eps}}}\\
+ \advirecord{33}{\
+-{\includegraphics[width=0.02\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.03\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.04\textwidth]{../tex/caml.eps}}}\\
++{\includegraphics[width=0.02\textwidth]{caml.eps}}\
++{\includegraphics[width=0.03\textwidth]{caml.eps}}\
++{\includegraphics[width=0.04\textwidth]{caml.eps}}}\\
+ \advirecord{34}{\
+-{\includegraphics[width=0.02\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.03\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.04\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.06\textwidth]{../tex/caml.eps}}}\\
++{\includegraphics[width=0.02\textwidth]{caml.eps}}\
++{\includegraphics[width=0.03\textwidth]{caml.eps}}\
++{\includegraphics[width=0.04\textwidth]{caml.eps}}\
++{\includegraphics[width=0.06\textwidth]{caml.eps}}}\\
+ \advirecord{35}{\
+-{\includegraphics[width=0.02\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.03\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.04\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.06\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.08\textwidth]{../tex/caml.eps}}}\\
++{\includegraphics[width=0.02\textwidth]{caml.eps}}\
++{\includegraphics[width=0.03\textwidth]{caml.eps}}\
++{\includegraphics[width=0.04\textwidth]{caml.eps}}\
++{\includegraphics[width=0.06\textwidth]{caml.eps}}\
++{\includegraphics[width=0.08\textwidth]{caml.eps}}}\\
+ \advirecord{36}{\
+-{\includegraphics[width=0.02\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.03\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.04\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.06\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.08\textwidth]{../tex/caml.eps}}\
+-{\includegraphics[width=0.1\textwidth]{../tex/caml.eps}}}\\
++{\includegraphics[width=0.02\textwidth]{caml.eps}}\
++{\includegraphics[width=0.03\textwidth]{caml.eps}}\
++{\includegraphics[width=0.04\textwidth]{caml.eps}}\
++{\includegraphics[width=0.06\textwidth]{caml.eps}}\
++{\includegraphics[width=0.08\textwidth]{caml.eps}}\
++{\includegraphics[width=0.1\textwidth]{caml.eps}}}\\
+ \advirecord{37}{{\includegraphics[width=0.1\textwidth]{world}}}\\
+ \advirecord{4}{{\begin{tabular}{@{}l@{}}
+ Note that inner tabulars\\ should still be enclosed\\
+@@ -824,7 +824,7 @@
+ 
+ ~\vfill
+ \begin{center}
+-\includegraphics[width=0.5\textwidth]{../tex/advilogo.eps}\\
++\includegraphics[width=0.5\textwidth]{advilogo.eps}\\
+ {\Large \bf That's all, folks!!}
+ \end{center}
+ \vfill
+diff -urN advi-1.6.0.orig/test/jpdemo.tex advi-1.6.0/test/jpdemo.tex
+--- advi-1.6.0.orig/test/jpdemo.tex	2004-02-27 01:26:52.000000000 +0100
++++ advi-1.6.0/test/jpdemo.tex	2005-01-01 15:37:39.000000000 +0100
+@@ -90,7 +90,7 @@
+ 
+ ~\vfill
+ \begin{center}
+-\includegraphics[width=0.5\textwidth]{../tex/advilogo.eps}\\
++\includegraphics[width=0.5\textwidth]{advilogo.eps}\\
+ {\Large \bf Ê©·ìµÁÍý! ÌëϪ»à¶ì!!}
+ \end{center}
+ \vfill
+diff -urN advi-1.6.0.orig/test/macros.tex advi-1.6.0/test/macros.tex
+--- advi-1.6.0.orig/test/macros.tex	2003-11-25 16:51:00.000000000 +0100
++++ advi-1.6.0/test/macros.tex	2005-01-01 15:38:42.000000000 +0100
+@@ -133,11 +133,11 @@
+ \verb"\begin{tabular}[t]{cccc}"
+ \verb"  One & " {\color{blue}\verb"\advirecord{tag2}{Two}"} \verb" &" {\color{blue}\verb"\advirecord{tag3}{Three}"} \verb"%"
+ \verb"      & Caml" {\color{blue}\verb"\advirecord{tag2}{s}"} \verb"\\"
+-\verb"  \includegraphics[width=0.1\textwidth]{../tex/caml.eps}&"
++\verb"  \includegraphics[width=0.1\textwidth]{caml.eps}&"
+ \verb" " {\color{blue}\verb"\advirecord{tag2}"}
+-\verb"   " {\color{blue}\verb"{\includegraphics[width=0.1\textwidth]{../tex/caml.eps}}"} \verb"}&"
++\verb"   " {\color{blue}\verb"{\includegraphics[width=0.1\textwidth]{caml.eps}}"} \verb"}&"
+ \verb" " {\color{blue}\verb"\advirecord{tag3}"}
+-\verb"   " {\color{blue}\verb"{\includegraphics[width=0.1\textwidth]{../tex/caml.eps}}"} \verb"}"
++\verb"   " {\color{blue}\verb"{\includegraphics[width=0.1\textwidth]{caml.eps}}"} \verb"}"
+ \verb"\end{tabular}"
+ \color{blue}\verb"\advipause"
+ \verb"\adviplay{tag2}"
+@@ -146,9 +146,9 @@
+ \end{alltt}
+ \begin{tabular}[t]{cccc}
+   One & \advirecord{tag2}{Two} & \advirecord{tag3}{Three} & Caml\advirecord{tag2}{s}\\
+-  \includegraphics[width=0.1\textwidth]{../tex/caml.eps}&
+-  \advirecord{tag2}{\includegraphics[width=0.1\textwidth]{../tex/caml.eps}}&
+-  \advirecord{tag3}{\includegraphics[width=0.1\textwidth]{../tex/caml.eps}}
++  \includegraphics[width=0.1\textwidth]{caml.eps}&
++  \advirecord{tag2}{\includegraphics[width=0.1\textwidth]{caml.eps}}&
++  \advirecord{tag3}{\includegraphics[width=0.1\textwidth]{caml.eps}}
+ \end{tabular}
+ \advipause
+ \adviplay{tag2}
+diff -urN advi-1.6.0.orig/test/test_events.tex advi-1.6.0/test/test_events.tex
+--- advi-1.6.0.orig/test/test_events.tex	2004-08-31 08:30:32.000000000 +0200
++++ advi-1.6.0/test/test_events.tex	2005-01-01 15:38:54.000000000 +0100
+@@ -42,7 +42,7 @@
+ 
+ ~\vfill
+ \begin{center}
+-\includegraphics[width=0.5\textwidth]{../tex/advilogo.eps}\\
++\includegraphics[width=0.5\textwidth]{advilogo.eps}\\
+ {\Large \bf That's all, folks!!}
+ \end{center}
+ \vfill
+diff -urN advi-1.6.0.orig/test/trans.tex advi-1.6.0/test/trans.tex
+--- advi-1.6.0.orig/test/trans.tex	2003-11-25 16:51:00.000000000 +0100
++++ advi-1.6.0/test/trans.tex	2005-01-01 15:40:10.000000000 +0100
+@@ -118,7 +118,7 @@
+ 
+ \begin{flushright}
+ \epstransparent
+-\includegraphics[width=0.25\textwidth]{../tex/advilogo.eps}
++\includegraphics[width=0.25\textwidth]{advilogo.eps}
+ \end{flushright}
+ 
+ \newpage\pstricksback{yellow}
+@@ -145,7 +145,7 @@
+ 
+ \begin{flushleft}
+ \epstransparent
+-\includegraphics[width=0.25\textwidth]{../tex/advilogo.eps}
++\includegraphics[width=0.25\textwidth]{advilogo.eps}
+ \end{flushleft}
+ 
+ \newpage\pstricksback{magenta}
+@@ -171,7 +171,7 @@
+ 
+ \begin{flushright}
+ \epstransparent
+-\includegraphics[width=0.25\textwidth]{../tex/advilogo.eps}
++\includegraphics[width=0.25\textwidth]{advilogo.eps}
+ \end{flushright}
+ 
+ \lastpage
+@@ -182,7 +182,7 @@
+ 
+ ~\vfill
+ \begin{center}
+-\includegraphics[width=0.5\textwidth]{../tex/advilogo.eps}\\
++\includegraphics[width=0.5\textwidth]{advilogo.eps}\\
+ \adviwait[0.1]
+ \bigskip
+ {\Huge \bf That's all, folks!!}


Property changes on: packages/advi/branches/split/debian/patches/fix_test_includes.dpatch
___________________________________________________________________
Name: svn:executable
   + *