diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-21 16:13:03 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-21 16:13:03 +0530 |
commit | eaebfbb4887d9410bc89e75bd142d5213f44296b (patch) | |
tree | 36c305e542712c86908d9d6d1f7719742df2ba15 /sh | |
parent | 79765062de9bd4cff009a51f4cbfebf1dc8ecd56 (diff) | |
download | build-common-eaebfbb4887d9410bc89e75bd142d5213f44296b.tar.gz build-common-eaebfbb4887d9410bc89e75bd142d5213f44296b.tar.bz2 build-common-eaebfbb4887d9410bc89e75bd142d5213f44296b.zip |
remove bloat
Diffstat (limited to 'sh')
-rwxr-xr-x | sh/bin.sh/python.sh | 37 | ||||
-rw-r--r-- | sh/lib.sh/existence.sh | 35 | ||||
-rw-r--r-- | sh/lib.sh/existence_python.sh | 76 | ||||
-rw-r--r-- | sh/lib.sh/msg.sh | 26 | ||||
-rw-r--r-- | sh/lib.sh/progname.sh | 1 | ||||
-rw-r--r-- | sh/lib.sh/version_gnunet.sh | 5 |
6 files changed, 0 insertions, 180 deletions
diff --git a/sh/bin.sh/python.sh b/sh/bin.sh/python.sh deleted file mode 100755 index 6a50498..0000000 --- a/sh/bin.sh/python.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -# This file is part of TALER -# (C) 2019 GNUnet e.V. -# -# This is very simple POSIX sh script which -# identifies the first matching -# python3 identifier in $PATH and produces -# configure.py from configure.py.in, and then -# calls the new executable configure.py. -# -# It should be portable on Unices. Report bugs on -# the bugtracker if you discover that it isn't -# working as intended. -# -# Authors: -# Author: ng0 <ng0@taler.net> -# -# Permission to use, copy, modify, and/or distribute this software for any -# purpose with or without fee is hereby granted. -# -# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE -# LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES -# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -# THIS SOFTWARE. -# -# SPDX-License-Identifier: 0BSD - -dir=$(dirname "$(readlink -- "$0")") -. $dir/../lib.sh/existence.sh -. $dir/../lib.sh/existence_python.sh - -exec "$PYTHON" $@ diff --git a/sh/lib.sh/existence.sh b/sh/lib.sh/existence.sh deleted file mode 100644 index cddc3d6..0000000 --- a/sh/lib.sh/existence.sh +++ /dev/null @@ -1,35 +0,0 @@ -# This file is part of TALER -# (C) 2019 GNUnet e.V. -# -# Authors: -# Author: ng0 <ng0@taler.net> -# -# Permission to use, copy, modify, and/or distribute this software for any -# purpose with or without fee is hereby granted. -# -# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE -# LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES -# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -# THIS SOFTWARE. -# -# SPDX-License-Identifier: 0BSD - -errmsg='' - -# Check if shell supports builtin 'type'. -if test -z "$errmsg"; then - if ! (eval 'type type') >/dev/null 2>&1 - then - errmsg='Shell does not support type builtin' - exit 1 - fi -fi - -existence() -{ - type "$1" >/dev/null 2>&1 -} diff --git a/sh/lib.sh/existence_python.sh b/sh/lib.sh/existence_python.sh deleted file mode 100644 index 5fd9b03..0000000 --- a/sh/lib.sh/existence_python.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/sh - -# This file is part of TALER -# (C) 2019 GNUnet e.V. -# -# This is very simple POSIX sh script which -# identifies the first matching -# python3 identifier in $PATH and produces -# configure.py from configure.py.in, and then -# calls the new executable configure.py. -# -# It should be portable on Unices. Report bugs on -# the bugtracker if you discover that it isn't -# working as intended. -# -# Authors: -# Author: ng0 <ng0@taler.net> -# -# Permission to use, copy, modify, and/or distribute this software for any -# purpose with or without fee is hereby granted. -# -# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE -# LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES -# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -# THIS SOFTWARE. -# -# SPDX-License-Identifier: 0BSD - -existence_python() -{ - # We have to check every possible variant of the - # executable name because there is a PEP which - # defines the executable to be like this. - if existence python3; then - if test ! -z "`python3 --version | awk '$2 ~ /^3\./ { print }'`"; then - python="python3" - else - echo "*** At least python 3.7 is required for the buildsystem" - exit 1 - fi - # elif existence python3.1; then - # python="python3.1" - # elif existence python3.2; then - # python="python3.2" - # elif existence python3.3; then - # python="python3.3" - # elif existence python3.4; then - # python="python3.4" - # elif existence python3.5; then - # python="python3.5" - # elif existence python3.6; then - # python="python3.6" - elif existence python3.7; then - python="python3.7" - elif existence python3.8; then - python="python3.8" - else - echo "*** No known python3 executable found in path ***" - echo "*** falling back to env(1) python ***" - # Unreliable, but if env finds no python, we still can - # not assume python in a fixed location. - # TODO: Check this in a clean chroot! - python="env python" - fi - - # we could check the return value here via || echo "blafoo" - # or fail anyway once configure.py is invoked because we - # don't have python if we reach the point to fail. - PYTHON=$($python -c 'import sys; print(sys.executable)') -} - -existence_python diff --git a/sh/lib.sh/msg.sh b/sh/lib.sh/msg.sh deleted file mode 100644 index 6bd49ee..0000000 --- a/sh/lib.sh/msg.sh +++ /dev/null @@ -1,26 +0,0 @@ -statusmsg() -{ - ${runcmd} echo "${tab}$@" | tee -a "${results}" -} - -infomsg() -{ - if [ x$verbosity = x1 ]; then - statusmsg "INFO:${tab}$@" - fi -} - -warningmsg() -{ - statusmsg "WARNING:${tab}$@" -} - -errormsg() -{ - statusmsg "ERROR:${tab}$@" -} - -linemsg() -{ - statusmsg "=========================================" -} diff --git a/sh/lib.sh/progname.sh b/sh/lib.sh/progname.sh deleted file mode 100644 index dd6fae8..0000000 --- a/sh/lib.sh/progname.sh +++ /dev/null @@ -1 +0,0 @@ -progname=${0##*/} diff --git a/sh/lib.sh/version_gnunet.sh b/sh/lib.sh/version_gnunet.sh deleted file mode 100644 index be68f73..0000000 --- a/sh/lib.sh/version_gnunet.sh +++ /dev/null @@ -1,5 +0,0 @@ -print_version() -{ - GNUNET_ARM_VERSION=`gnunet-arm -v | awk '{print $2 " " $3}'` - echo ${progname} $GNUNET_ARM_VERSION -} |