diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-04-15 07:24:06 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-04-15 07:24:06 +0200 |
commit | 970f5d9c1da01750a10759bfdaebf6eb08318799 (patch) | |
tree | 18d6eeeb579f4eb7f73cd52ceb2ed47cb2bbf500 /tools/buildgen/generate_projects.sh | |
parent | c547dcb547b4f6db558244edbe5b1c9d7001b717 (diff) |
Removing some bashisms.
Diffstat (limited to 'tools/buildgen/generate_projects.sh')
-rwxr-xr-x | tools/buildgen/generate_projects.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/buildgen/generate_projects.sh b/tools/buildgen/generate_projects.sh index 45f08df38f..a09395c9e0 100755 --- a/tools/buildgen/generate_projects.sh +++ b/tools/buildgen/generate_projects.sh @@ -46,13 +46,11 @@ end2end_test_build=`mktemp /tmp/genXXXXXX` $gen_build_json > $end2end_test_build global_plugins=`find ./tools/buildgen/plugins -name '*.py' | - sort | grep -v __init__ | - while read p ; do echo -n "-p $p " ; done` + sort | grep -v __init__ | awk ' { printf "-p %s ", $0 } '` for dir in . ; do local_plugins=`find $dir/templates -name '*.py' | - sort | grep -v __init__ | - while read p ; do echo -n "-p $p " ; done` + sort | grep -v __init__ | awk ' { printf "-p %s ", $0 } '` plugins="$global_plugins $local_plugins" @@ -60,7 +58,7 @@ for dir in . ; do out=${dir}/${file#$dir/templates/} # strip templates dir prefix out=${out%.*} # strip template extension json_files="build.json $end2end_test_build" - data=`for i in $json_files; do echo -n "-d $i "; done` + data=`for i in $json_files ; do echo $i ; done | awk ' { printf "-d %s ", $0 } '` if [ "x$TEST" = "xtrue" ] ; then actual_out=$out out=`mktemp /tmp/gentXXXXXX` |