From d7a81b8bd6d0eb78911e11d4741e8df1de913763 Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Mon, 10 Aug 2009 12:14:38 +0200 Subject: build_all_v2.mk: fail if autodetecion of VERSION fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Uwe Kleine-König --- build_all_v2.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;; \ -- cgit v1.2.3