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
113
114
115
|
From: James McCoy <jamessan@debian.org>
Date: Wed, 1 Aug 2018 20:44:36 -0400
Subject: examples-compile-instructions
Fix build instructions for libsvn-doc/examples/*.c.
---
tools/examples/getlocks_test.c | 8 +++-----
tools/examples/headrev.c | 8 +++-----
tools/examples/minimal_client.c | 6 ++----
tools/examples/svnput.c | 7 ++-----
tools/examples/testwrite.c | 8 +++-----
5 files changed, 13 insertions(+), 24 deletions(-)
diff --git a/tools/examples/getlocks_test.c b/tools/examples/getlocks_test.c
index 1051063..2e9725c 100644
--- a/tools/examples/getlocks_test.c
+++ b/tools/examples/getlocks_test.c
@@ -20,13 +20,11 @@
* under the License.
* ====================================================================
*
- * To compile on unix against Subversion and APR libraries, try
- * something like:
+ * To compile on Debian:
*
* cc getlocks_test.c -o getlocks_test \
- * -I/usr/local/include/subversion-1 -I/usr/local/apache2/include \
- * -L/usr/local/apache2/lib -L/usr/local/lib \
- * -lsvn_client-1 -lsvn_ra-1 -lsvn_subr-1 -lapr-0 -laprutil-0
+ * -I/usr/include/subversion-1 $(pkg-config --cflags apr-1) \
+ * -lsvn_client-1 -lsvn_ra-1 -lsvn_subr-1
*
*/
diff --git a/tools/examples/headrev.c b/tools/examples/headrev.c
index 1f71d76..0513814 100644
--- a/tools/examples/headrev.c
+++ b/tools/examples/headrev.c
@@ -20,13 +20,11 @@
* under the License.
* ====================================================================
*
- * To compile on unix against Subversion and APR libraries, try
- * something like:
+ * To compile on Debian:
*
* cc headrev.c -o headrev \
- * -I/usr/local/include/subversion-1 -I/usr/local/apache2/include \
- * -L/usr/local/apache2/lib -L/usr/local/lib \
- * -lsvn_client-1 -lsvn_ra-1 -lsvn_subr-1 -lapr-0 -laprutil-0
+ * -I/usr/include/subversion-1 $(pkg-config --cflags apr-1) \
+ * -lsvn_client-1 -lsvn_ra-1 -lsvn_subr-1
*
*/
diff --git a/tools/examples/minimal_client.c b/tools/examples/minimal_client.c
index 967ce5b..3475bab 100644
--- a/tools/examples/minimal_client.c
+++ b/tools/examples/minimal_client.c
@@ -30,12 +30,10 @@
* For a much more complex example, the svn cmdline client might be
* considered the 'reference implementation'.
*
- * From a Linux system, a typical commandline compile might look like:
+ * To compile on Debian:
*
* cc minimal_client.c -o minimal_client \
- * -I/usr/local/include/subversion-1 -I/usr/local/apache2/include \
- * -L/usr/local/apache2/lib -L/usr/local/lib \
- * -lsvn_client-1 -lapr-0 -laprutil-0
+ * -I/usr/include/subversion-1 $(pkg-config --cflags apr-1) -lsvn_client-1
*
*/
diff --git a/tools/examples/svnput.c b/tools/examples/svnput.c
index 6414fef..7a144ff 100644
--- a/tools/examples/svnput.c
+++ b/tools/examples/svnput.c
@@ -33,13 +33,10 @@
* under the License.
* ====================================================================
*
- * To compile on unix against Subversion and APR libraries, try
- * something like:
+ * To compile on Debian:
*
* cc svnput.c -o svnput \
- * -I/usr/local/include/subversion-1 -I/usr/local/apache2/include \
- * -L/usr/local/apache2/lib -L/usr/local/lib \
- * -lsvn_client-1 -lapr-0 -laprutil-0
+ * -I/usr/include/subversion-1 $(pkg-config --cflags apr-1) -lsvn_client-1
*
*/
diff --git a/tools/examples/testwrite.c b/tools/examples/testwrite.c
index beb2fba..b424b32 100644
--- a/tools/examples/testwrite.c
+++ b/tools/examples/testwrite.c
@@ -20,13 +20,11 @@
* under the License.
* ====================================================================
*
- * To compile on unix against Subversion and APR libraries, try
- * something like:
+ * To compile on Debian:
*
* cc testwrite.c -o testwrite \
- * -I/usr/local/include/subversion-1 -I/usr/local/apache2/include \
- * -L/usr/local/apache2/lib -L/usr/local/lib \
- * -lsvn_client-1 -lsvn_ra-1 -lsvn_subr-1 -lsvn-fs-1 -lapr-0 -laprutil-0
+ * -I/usr/include/subversion-1 $(pkg-config --cflags apr-1) \
+ * -lsvn_client-1 -lsvn_ra-1 -lsvn_subr-1 -lsvn_fs-1
*
*/
|