[oe-commits] Chris Larson : create_wrapper: check syntax of arguments

git version control git at git.openembedded.org
Sun Oct 3 05:15:19 UTC 2010


Module: openembedded.git
Branch: master
Commit: 75c5a93da2d7118482ea3e00990fb45ec4d82c89
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=75c5a93da2d7118482ea3e00990fb45ec4d82c89

Author: Chris Larson <chris_larson at mentor.com>
Date:   Fri Oct  1 11:03:44 2010 -0700

create_wrapper: check syntax of arguments

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 classes/utils.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/classes/utils.bbclass b/classes/utils.bbclass
index 9a9c7b5..b62bd11 100644
--- a/classes/utils.bbclass
+++ b/classes/utils.bbclass
@@ -459,6 +459,10 @@ create_wrapper () {
 
    cmd=$1
    shift
+
+   # run echo via env to test syntactic validity of the variable arguments
+   env $@ echo "Generating wrapper script for $cmd"
+
    mv $cmd $cmd.real
    cmdname=`basename $cmd`.real
    cat <<END >$cmd





More information about the Openembedded-commits mailing list