Take external programs from environment in order to support non FHS distros

For instance, NixOS doesn't follow the FHS.
This commit is contained in:
haslersn
2020-07-13 17:35:48 +02:00
parent f3d01663ed
commit 02981fd3ae
44 changed files with 45 additions and 45 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
while getopts t: opt; do while getopts t: opt; do
case $opt in case $opt in

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
while getopts t: opt; do while getopts t: opt; do
case $opt in case $opt in

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
function build function build
{ {

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
i=$1 i=$1

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
n=$1 n=$1

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# brew-installed OpenSSL on MacOS # brew-installed OpenSSL on MacOS
PATH=/usr/local/opt/openssl/bin:$PATH PATH=/usr/local/opt/openssl/bin:$PATH

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
make -j4 ecdsa Fake-ECDSA.x secure.x make -j4 ecdsa Fake-ECDSA.x secure.x

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
while getopts XYC opt; do while getopts XYC opt; do
case $opt in case $opt in

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
HERE=$(cd `dirname $0`; pwd) HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/.. SPDZROOT=$HERE/..

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
if test `uname` = "Linux"; then if test `uname` = "Linux"; then
flags='cat /proc/cpuinfo' flags='cat /proc/cpuinfo'
@@ -11,7 +11,7 @@ elif test `uname` = Darwin; then
echo Aborting echo Aborting
exit 1 exit 1
else else
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" /usr/bin/env ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi fi
fi fi
make tldr make tldr

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
. Scripts/run-common.sh . Scripts/run-common.sh