summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild_all_v2.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/build_all_v2.mk b/build_all_v2.mk
index f11707b..dd61f70 100755
--- a/build_all_v2.mk
+++ b/build_all_v2.mk
@@ -31,7 +31,11 @@ BUILDDATE := $(shell date +%y%m%d-%H%M)
# echo "$${version}";; \
# esac \
# )
-VERSION := $(shell pwd | sed -e "s~.*/OSELAS.Toolchain-~~")
+VERSION := $(shell pwd | sed -n -e "s~.*/OSELAS.Toolchain-~~p")
+ifeq (,$(VERSION))
+$(error rename your working copy directory to OSELAS.Toolchain-$$VERSION)
+endif
+
ARCH := $(shell \
case "$$(uname -m)" in \
(x86_64) echo amd64;; \