#! /bin/sh -e
## 02_correct_examples.dpatch by Sylvain Le Gall <gildor@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

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 -urNad /mnt/nfs0/gildor/deb/ocaml-package/ocamlgsl/ocamlgsl-0.3.3/examples/Makefile ocamlgsl-0.3.3/examples/Makefile
--- /mnt/nfs0/gildor/deb/ocaml-package/ocamlgsl/ocamlgsl-0.3.3/examples/Makefile	2002-12-30 20:53:22.000000000 +0100
+++ ocamlgsl-0.3.3/examples/Makefile	2004-05-22 00:26:39.000000000 +0200
@@ -1,7 +1,7 @@
 
-OCAMLC   := ocamlc.opt
-OCAMLOPT := ocamlopt.opt
-CAMLP4O  := camlp4o.opt
+OCAMLC   := ocamlc
+OCAMLOPT := ocamlopt
+CAMLP4O  := camlp4o
 
 OCAMLBCFLAGS := -g
 OCAMLNCFLAGS := -unsafe
