diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-04-22 15:17:02 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-04-22 15:17:02 +0200 |
commit | ad321624be5eedde4ee84f30417fd610757031d7 (patch) | |
tree | 2b626f7d1cdea03c89b1dee6fda486eef142cdc1 /src/util | |
parent | 21188ca703d05211e8d4d3ae9bd22500f53915ac (diff) |
add taler-arm wrapper
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Makefile.am | 8 | ||||
-rw-r--r-- | src/util/taler-arm.in | 10 |
2 files changed, 15 insertions, 3 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am index 22bc788b8..61a8a766d 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -9,18 +9,20 @@ endif pkgcfgdir = $(prefix)/share/taler/config.d/ + pkgcfg_DATA = \ paths.conf EXTRA_DIST = \ paths.conf -dist_bin_SCRIPTS = taler-config +templated_scripts = taler-config taler-arm +dist_bin_SCRIPTS = $(templated_scripts) # See https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Installation-Directory-Variables.html -# for and explanation and why this ugliness is necessary. +# for an explanation and why this ugliness is necessary. edit = sed -e 's|@libdir[@]|$(libdir)|g' -taler-config: Makefile $(srcdir)/taler-config.in +$(templated_scripts): %: Makefile $(srcdir)/%.in rm -f $@ $@.tmp $(edit) '$(srcdir)/$@.in' >$@.tmp chmod +x $@.tmp diff --git a/src/util/taler-arm.in b/src/util/taler-arm.in new file mode 100644 index 000000000..e624e85b5 --- /dev/null +++ b/src/util/taler-arm.in @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +if ! type gnunet-config >/dev/null; then + echo "$0 needs gnunet-arm to be installed" + exit 1 +fi + +# FIXME: not very portable ... +export LD_PRELOAD=@libdir@/libtalerutil.so +exec gnunet-arm "$@" |