From 92974a5e5a81ac1781d3fd58f6299f142dafb0cc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Sep 2016 15:58:29 +0200 Subject: Fix bootstrap.sh to avoid multiple directory slashes --- bootstrap.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 1f89810..ba245de 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -44,7 +44,7 @@ while test $# -ne 0; do diag "error: libbutl directory '$1' does not exist" exit 1 fi - libbutl="$1" + libbutl="${1%/}" shift ;; --host) @@ -92,6 +92,7 @@ if test -z "$libbutl"; then libbutl="libbutl" else libbutl="$(echo libbutl-*/)" + libbutl="${libbutl%/}" if test ! -d "$libbutl"; then libbutl= fi @@ -103,6 +104,7 @@ if test -z "$libbutl"; then libbutl="../libbutl" else libbutl="$(echo ../libbutl-*/)" + libbutl="${libbutl%/}" if test ! -d "$libbutl"; then libbutl= fi @@ -128,4 +130,4 @@ src="$src build2/pkgconfig/*.cxx" src="$src $libbutl/butl/*.cxx" set -x -"$cxx" -I"$libbutl" -I. '-DBUILD2_HOST_TRIPLET="'"$host"'"' -std=c++1y "$@" -o build2/b-boot $src +"$cxx" "-I$libbutl" -I. '-DBUILD2_HOST_TRIPLET="'"$host"'"' -std=c++1y "$@" -o build2/b-boot $src -- cgit v1.1