3 # From curl's buildconf, making this script subject to the
4 # curl license: https://curl.haxx.se/docs/copyright.html
5 # Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
6 # Copyright (C) 2019 GNUnet e.V.
8 # findtool works like which without relying on which (which is a problem
9 # for some limited shells.
13 if { echo "$file" | grep "/" >/dev/null 2>&1; } then
14 # when file is given with a path check it first
15 if test -f "$file"; then
25 # echo "checks for $file in $path" >&2
26 if test "$path" -a "$path" != '.' -a -f "$path/$file"; then
34 # end curl licensed code
35 pythonize=`findtool python2.7 2>/dev/null`
36 if test ! -x "$pythonize"; then
37 pythonize=`findtool ${PYTHON2:-python2.7}`
40 if test -z "$pythonize"; then
41 echo "ERROR: python2.7 not found."
42 echo " You need python2.7 installed."
46 ${pythonize} @PREFIX@/bin/gnunet-qr.py $@ || echo "ERROR: python2.7 or future not found" && exit 1