From 3ee28382b24f77f23eac03f594b424c611a7bda8 Mon Sep 17 00:00:00 2001 From: ng0 Date: Mon, 25 Nov 2019 22:43:00 +0000 Subject: [PATCH] fix path in g-g-p-s-c --- src/gns/gnunet-gns-proxy-setup-ca.in | 33 ++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/src/gns/gnunet-gns-proxy-setup-ca.in b/src/gns/gnunet-gns-proxy-setup-ca.in index e3f3f4852..7a79c7994 100644 --- a/src/gns/gnunet-gns-proxy-setup-ca.in +++ b/src/gns/gnunet-gns-proxy-setup-ca.in @@ -46,10 +46,35 @@ # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY # OF SUCH DAMAGE. -. @pkgdatadir@/progname.sh -. @pkgdatadir@/existence.sh -. @pkgdatadir@/msg.sh -. @pkgdatadir@/version_gnunet.sh +dir=$(dirname "$0") + +if test -e @pkgdatadir@/progname.sh +then + . @pkgdatadir@/progname.sh +else + . $dir/../../contrib/build-common/sh/lib.sh/progname.sh +fi + +if test -e @pkgdatadir@/existence.sh +then + . @pkgdatadir@/existence.sh +else + . $dir/../../contrib/build-common/sh/lib.sh/existence.sh +fi + +if test -e @pkgdatadir@/msg.sh +then + . @pkgdatadir@/msg.sh +else + . $dir/../../contrib/build-common/sh/lib.sh/msg.sh +fi + +if test -e @pkgdatadir@/version_gnunet.sh +then + . @pkgdatadir@/version_gnunet.sh +else + . $dir/../../contrib/build-common/sh/lib.sh/version_gnunet.sh +fi # Whitespace normalization without depending on shell features: tab=' ' -- 2.25.1