fix path in g-g-p-s-c
authorng0 <ng0@n0.is>
Mon, 25 Nov 2019 22:43:00 +0000 (22:43 +0000)
committerng0 <ng0@n0.is>
Mon, 25 Nov 2019 22:43:00 +0000 (22:43 +0000)
src/gns/gnunet-gns-proxy-setup-ca.in

index e3f3f485297214b5883460d2c453c73bc5a535df..7a79c7994c3d6702f52ee75e69b81cd8cede0264 100644 (file)
 # 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='   '