summaryrefslogtreecommitdiff
path: root/src/util/anastasis-config.in
blob: 6657540a71770910ed82a6df199d7434671974b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

set -eu

if ! type gnunet-config >/dev/null; then
  echo "$0 needs gnunet-config to be installed"
  exit 1
fi

GC=$(which gnunet-config)
SO=$(ls %libdir%/libanastasisutil.so.* | sort -n | tail -n1)
export LD_PRELOAD=${LD_PRELOAD:-}:${SO}
exec gnunet-config "$@"