summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
Diffstat (limited to 'setup')
-rwxr-xr-xsetup14
1 files changed, 13 insertions, 1 deletions
diff --git a/setup b/setup
index a5e90474d..57b3ded72 100755
--- a/setup
+++ b/setup
@@ -31,7 +31,19 @@ machine() {
local target=$1
local build_dir=$2
local cfg name tmpl
- for cfg in meta-*/meta-*/conf/machine/*.conf meta-*/conf/machine/*.conf; do
+ local configs
+
+ # zsh requires wordsplit so that variable expansion behaves like bash
+ if [ -n "$ZSH_NAME" ]; then
+ setopt local_options shwordsplit
+ fi
+ if which find > /dev/null 2>&1; then
+ configs=$(find meta-* -path "*/conf/machine/*.conf")
+ else
+ configs=$(ls -1 meta-*/meta-*/conf/machine/*.conf meta-*/conf/machine/*.conf)
+ fi
+
+ for cfg in $configs; do
name=${cfg##*/}
name=${name%.conf}
tmpl=${cfg%/machine/*.conf}