From e51a594dbb1e3820aa1ef3bb96504b0589c739b9 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Thu, 10 Jun 2021 11:42:19 +0300 Subject: [PATCH] fix strip_boost_namespace.sh work if target pathh is missing --- misc/strip_boost_namespace.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/strip_boost_namespace.sh b/misc/strip_boost_namespace.sh index e98fb5b..d0e9395 100755 --- a/misc/strip_boost_namespace.sh +++ b/misc/strip_boost_namespace.sh @@ -5,16 +5,16 @@ # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +echo "***** Making target path" TARGET_PATH="`dirname \"$0\"`/../../freestanding_pfr" +rm -rf ${TARGET_PATH} +mkdir ${TARGET_PATH} TARGET_PATH=`cd "${TARGET_PATH}";pwd` + SOURCE_PATH="`dirname \"$0\"`/.." SOURCE_PATH=`cd "${SOURCE_PATH}";pwd` - echo "***** Copying from ${SOURCE_PATH} to ${TARGET_PATH}" -rm -rf ${TARGET_PATH} -mkdir ${TARGET_PATH} - cp -rf ${SOURCE_PATH}/* ${TARGET_PATH} mv ${TARGET_PATH}/include/boost/* ${TARGET_PATH}/include/