From 8065f2f80fc6818b01650a25b1d32b50840fcd66 Mon Sep 17 00:00:00 2001 From: Saager Mhatre Date: Tue, 8 Apr 2014 20:17:55 +0530 Subject: [PATCH] Update build script; refactor groups into loop --- build.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index a919637..7510105 100755 --- a/build.sh +++ b/build.sh @@ -1,10 +1,8 @@ #!/bin/sh -ruby build.rb groovy_dev > bin/groovy_dev/dq.sh -ruby build.rb ruby_dev > bin/ruby_dev/dq.sh -ruby build.rb scala_dev > bin/scala_dev/dq.sh -ruby build.rb java_dev > bin/java_dev/dq.sh -ruby build.rb db > bin/db/dq.sh -ruby build.rb core > bin/core/dq.sh -ruby build.rb clojure_dev > bin/clojure_dev/dq.sh -ruby build.rb all > bin/all/dq.sh -ruby build.rb frontend_dev > bin/frontend_dev/dq.sh \ No newline at end of file + +rm -rf ./bin + +for group in groovy_dev ruby_dev scala_dev java_dev db core clojure_dev all frontend_dev; do + mkdir -p ./bin/$group/ + ruby build.rb $group > ./bin/$group/dq.sh +done