From 820c74012c4e9f7700efe0767e491e2b98c339e6 Mon Sep 17 00:00:00 2001 From: dyb Date: Thu, 12 Oct 2017 22:51:39 -0400 Subject: [PATCH] updated to handle the case when a submodule directory is missing. configure original commit: ebef2e8fea60ca9b5130b6f1ffe3371c02ac32c8 --- configure | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 4f035e38bc..fb42a4d8a8 100755 --- a/configure +++ b/configure @@ -314,15 +314,18 @@ if [ -d '.git' ] && command -v git >/dev/null 2>&1 ; then git submodule init && git submodule update || exit 1 else if [ ! -f 'nanopass/nanopass.ss' ] ; then - rmdir nanopass && (curl -L -o v1.9.tar.gz https://github.com/nanopass/nanopass-framework-scheme/archive/v1.9.tar.gz && tar -zxf v1.9.tar.gz && mv nanopass-framework-scheme-1.9 nanopass && rm v1.9.tar.gz) || exit 1 + rmdir nanopass > /dev/null 2>&1 + (curl -L -o v1.9.tar.gz https://github.com/nanopass/nanopass-framework-scheme/archive/v1.9.tar.gz && tar -zxf v1.9.tar.gz && mv nanopass-framework-scheme-1.9 nanopass && rm v1.9.tar.gz) || exit 1 fi if [ ! -f 'zlib/configure' ] ; then - rmdir zlib && (curl -L -o v1.2.11.tar.gz https://github.com/madler/zlib/archive/v1.2.11.tar.gz && tar -xzf v1.2.11.tar.gz && mv zlib-1.2.11 zlib && rm v1.2.11.tar.gz) || exit 1 + rmdir zlib > /dev/null 2>&1 + (curl -L -o v1.2.11.tar.gz https://github.com/madler/zlib/archive/v1.2.11.tar.gz && tar -xzf v1.2.11.tar.gz && mv zlib-1.2.11 zlib && rm v1.2.11.tar.gz) || exit 1 fi if [ ! -f 'stex/Mf-stex' ] ; then - rmdir stex && (curl -L -o v1.2.1.tar.gz https://github.com/dybvig/stex/archive/v1.2.1.tar.gz && tar -zxf v1.2.1.tar.gz && mv stex-1.2.1 stex && rm v1.2.1.tar.gz) || exit 1 + rmdir stex > /dev/null 2>&1 + (curl -L -o v1.2.1.tar.gz https://github.com/dybvig/stex/archive/v1.2.1.tar.gz && tar -zxf v1.2.1.tar.gz && mv stex-1.2.1 stex && rm v1.2.1.tar.gz) || exit 1 fi fi