summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-25 22:43:00 +0000
committerng0 <ng0@n0.is>2019-11-25 22:43:00 +0000
commit3ee28382b24f77f23eac03f594b424c611a7bda8 (patch)
treec5e47a19067f84718a7dd2102b02273690961b6f /src
parentf48c8bffc255e7b1c2ef1d1a07ee436ebb8de054 (diff)
fix path in g-g-p-s-c
Diffstat (limited to 'src')
-rw-r--r--src/gns/gnunet-gns-proxy-setup-ca.in33
1 files 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=' '