From b1d380e07eec0929965b88ec833dacf1fe1fceef Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Sat, 15 Oct 2022 00:21:53 +0300 Subject: [PATCH] Allow the paths file to be created outside of the build system env --- makefiles/targets.mk | 2 +- scripts/create_nbs_paths.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/makefiles/targets.mk b/makefiles/targets.mk index e82045b..a9b8e3d 100644 --- a/makefiles/targets.mk +++ b/makefiles/targets.mk @@ -59,7 +59,7 @@ warn-jobs: nimbus-build-system-paths: echo "Creating nimbus-build-system.paths"; \ - "$(CURDIR)/$(BUILD_SYSTEM_DIR)/scripts/create_nbs_paths.sh" + TOP_LEVEL_DIR="$(CURDIR)" "$(CURDIR)/$(BUILD_SYSTEM_DIR)/scripts/create_nbs_paths.sh" deps-common: | sanity-checks warn-update warn-jobs $(NIMBLE_DIR) # - don't build our Nim target if it's not going to be used diff --git a/scripts/create_nbs_paths.sh b/scripts/create_nbs_paths.sh index f463ad4..7c42c70 100755 --- a/scripts/create_nbs_paths.sh +++ b/scripts/create_nbs_paths.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -cd "${ABS_PATH}/../../.." +cd "$TOP_LEVEL_DIR" echo "--noNimblePath" > nimbus-build-system.paths for file in $(ls -d $PWD/vendor/*)