summaryrefslogtreecommitdiff
path: root/debian/patches/002-Make-Examples-Buildable-standalone.dpatch
blob: dd2dd51f716a9e523078848b7ce8ca539c43c45b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#! /bin/sh /usr/share/dpatch/dpatch-run
## 002-Make-Examples-Buildable-standalone.dpatch
## by Adam Cécile (Le_Vert) <gandalf@le-vert.net>
##
## DP: This patch makes the examples build standalone.

@DPATCH@

diff -ur libmowgli-patched/src/examples/dicttest/dicttest.c libmowgli/src/examples/dicttest/dicttest.c
--- libmowgli-patched/src/examples/dicttest/dicttest.c	2007-10-21 15:49:43.019930332 +0200
+++ libmowgli/src/examples/dicttest/dicttest.c	2007-09-27 22:04:26.404664058 +0200
@@ -31,7 +31,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <mowgli.h>
+#include <libmowgli/mowgli.h>
 
 int main(int argc, const char *argv[])
 {
diff -ur libmowgli-patched/src/examples/dicttest/Makefile libmowgli/src/examples/dicttest/Makefile
--- libmowgli-patched/src/examples/dicttest/Makefile	2007-10-21 15:48:02.014174342 +0200
+++ libmowgli/src/examples/dicttest/Makefile	2007-10-10 20:37:43.653955022 +0200
@@ -1,7 +1,7 @@
 PROG_NOINST = dicttest${PROG_SUFFIX}
 SRCS = dicttest.c
 
-include ../../../buildsys.mk
+include ../buildsys.mk
 
 CPPFLAGS += -I../../libmowgli
 LIBS += -L../../libmowgli -lmowgli
diff -ur libmowgli-patched/src/examples/formattertest/formattertest.c libmowgli/src/examples/formattertest/formattertest.c
--- libmowgli-patched/src/examples/formattertest/formattertest.c	2007-10-21 15:49:14.518306117 +0200
+++ libmowgli/src/examples/formattertest/formattertest.c	2007-09-27 22:04:26.404664058 +0200
@@ -31,7 +31,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <mowgli.h>
+#include <libmowgli/mowgli.h>
 
 int main(int argc, char *argv[])
 {
diff -ur libmowgli-patched/src/examples/formattertest/Makefile libmowgli/src/examples/formattertest/Makefile
--- libmowgli-patched/src/examples/formattertest/Makefile	2007-10-21 15:48:02.014174342 +0200
+++ libmowgli/src/examples/formattertest/Makefile	2007-10-10 20:37:44.153983517 +0200
@@ -1,7 +1,7 @@
 PROG_NOINST = formattertest${PROG_SUFFIX}
 SRCS = formattertest.c
 
-include ../../../buildsys.mk
+include ../buildsys.mk
 
 CPPFLAGS += -I../../libmowgli
 LIBS += -L../../libmowgli -lmowgli
diff -ur libmowgli-patched/src/examples/listsort/listsort.c libmowgli/src/examples/listsort/listsort.c
--- libmowgli-patched/src/examples/listsort/listsort.c	2007-10-21 15:49:14.518306117 +0200
+++ libmowgli/src/examples/listsort/listsort.c	2007-09-27 22:04:26.404664058 +0200
@@ -31,7 +31,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <mowgli.h>
+#include <libmowgli/mowgli.h>
 
 int str_comparator(mowgli_node_t *n, mowgli_node_t *n2, void *opaque)
 {
diff -ur libmowgli-patched/src/examples/listsort/Makefile libmowgli/src/examples/listsort/Makefile
--- libmowgli-patched/src/examples/listsort/Makefile	2007-10-21 15:48:02.014174342 +0200
+++ libmowgli/src/examples/listsort/Makefile	2007-10-10 20:37:44.654012012 +0200
@@ -1,7 +1,7 @@
 PROG_NOINST = listsort${PROG_SUFFIX}
 SRCS = listsort.c
 
-include ../../../buildsys.mk
+include ../buildsys.mk
 
 CPPFLAGS += -I../../libmowgli
 LIBS += -L../../libmowgli -lmowgli
diff -ur libmowgli-patched/src/examples/Makefile libmowgli/src/examples/Makefile
--- libmowgli-patched/src/examples/Makefile	2007-10-21 15:48:02.014174342 +0200
+++ libmowgli/src/examples/Makefile	2007-10-10 20:37:43.653955022 +0200
@@ -1,3 +1,3 @@
 SUBDIRS = randomtest listsort formattertest dicttest
 
-include ../../buildsys.mk
+include buildsys.mk
diff -ur libmowgli-patched/src/examples/randomtest/Makefile libmowgli/src/examples/randomtest/Makefile
--- libmowgli-patched/src/examples/randomtest/Makefile	2007-10-21 15:48:02.014174342 +0200
+++ libmowgli/src/examples/randomtest/Makefile	2007-10-10 20:37:44.654012012 +0200
@@ -1,7 +1,7 @@
 PROG_NOINST = randomtest${PROG_SUFFIX}
 SRCS = randomtest.c
 
-include ../../../buildsys.mk
+include ../buildsys.mk
 
 CPPFLAGS += -I../../libmowgli
 LIBS += -L../../libmowgli -lmowgli
diff -ur libmowgli-patched/src/examples/randomtest/randomtest.c libmowgli/src/examples/randomtest/randomtest.c
--- libmowgli-patched/src/examples/randomtest/randomtest.c	2007-10-21 15:49:14.518306117 +0200
+++ libmowgli/src/examples/randomtest/randomtest.c	2007-10-14 00:16:59.752080433 +0200
@@ -31,7 +31,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  */
-#include <mowgli.h>
+#include <libmowgli/mowgli.h>
 
 int main(int argc, char *argv[])
 {