diff options
author | James McCoy <jamessan@debian.org> | 2018-08-01 20:44:36 -0400 |
---|---|---|
committer | James McCoy <jamessan@debian.org> | 2019-11-18 22:59:31 -0500 |
commit | 5a2d54781738afc7c198ffc0146fc279c909a196 (patch) | |
tree | 26d9aca4eb55a0b806080e187677432306724306 | |
parent | 340946c45e9cccfd646c59228cecd85d24312ff6 (diff) |
examples-compile-instructions
Fix build instructions for libsvn-doc/examples/*.c.
Gbp-Pq: Name examples-compile-instructions
-rw-r--r-- | tools/examples/getlocks_test.c | 8 | ||||
-rw-r--r-- | tools/examples/headrev.c | 8 | ||||
-rw-r--r-- | tools/examples/minimal_client.c | 6 | ||||
-rw-r--r-- | tools/examples/svnput.c | 7 | ||||
-rw-r--r-- | 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 * */ |