summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2009-08-10 12:14:38 +0200
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2009-08-10 21:34:29 +0200
commitd7a81b8bd6d0eb78911e11d4741e8df1de913763 (patch)
tree3ecc7e8e0edf5128406b2e6b99e71d790259f135
parent53295a171631e2791db31d43d5309efa68a53ed4 (diff)
downloadOSELAS.Toolchain-d7a81b8bd6d0eb78911e11d4741e8df1de913763.tar.gz
build_all_v2.mk: fail if autodetecion of VERSION fails
VERSION is determined from the basename of the working copy. Just print an error if its name doesn't follow the required convention. Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-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;; \