From: ng0 Date: Mon, 25 Nov 2019 22:43:00 +0000 (+0000) Subject: fix path in g-g-p-s-c X-Git-Tag: v0.12.0~77 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ee28382b24f77f23eac03f594b424c611a7bda8;p=oweals%2Fgnunet.git fix path in g-g-p-s-c --- 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=' '