From 884d08af5d300363fc7c54352a4f3840efeef503 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Fri, 21 Sep 2018 00:15:29 -0400 Subject: [PATCH] Fix set command --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index a8a33ab..e6bd497 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/data/data/com.termux/files/usr/bin/bash -set -xx +set -ex apt update apt -y install make clang openssl-dev perl tsu wget git python python-dev gnupg dirmngr curl autoconf automake sed gettext gzip pkg-config libcrypt-dev @@ -38,10 +38,12 @@ wget https://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz.sig gpg2 attr-2.4.47.src.tar.gz.sig tar -xf attr-2.4.47.src.tar.gz cd attr-2.4.47 + #fixing paths to sh sed -i "s/\/bin\/sh/\/data\/data\/com.termux\/files\/usr\/bin\/sh/" configure sed -i "s/\/bin\/sh/\/data\/data\/com.termux\/files\/usr\/bin\/sh/" install-sh sed -i "s/\/bin\/sh/\/data\/data\/com.termux\/files\/usr\/bin\/sh/" include/install-sh + #fix for non-existent /tmp directory in set_cc_for_build of config.guess for 32-bit arm sed -i "s/TMPDIR=\/tmp/TMPDIR=tmp/g" config.guess mkdir tmp