From 58584018deae4cf976db7fc9abc8eefdb99c506c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 21 Jan 2014 02:55:02 +0100 Subject: [PATCH] Add array support to the simple generate script (doesn't work with spaces) --- scripts/generate.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/generate.pl b/scripts/generate.pl index 4c0723c8..30110356 100644 --- a/scripts/generate.pl +++ b/scripts/generate.pl @@ -12,6 +12,9 @@ sub add_config { if (ref($val) eq 'HASH') { add_config($key . '.', $val); } + elsif (ref($val) eq 'ARRAY') { + $config{'@' . $prefix . $key . '@'} = join ' ', @{$val}; + } unless (ref($val)) { $config{'@' . $prefix . $key . '@'} = $val; }