From 132cba71a8a6c3f57ab57f95626d644d69392b4b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 25 Feb 2015 12:20:48 -0500 Subject: clean up build system --- hooks/after_prepare/gen_resources | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'hooks') diff --git a/hooks/after_prepare/gen_resources b/hooks/after_prepare/gen_resources index ac86515..c98c905 100755 --- a/hooks/after_prepare/gen_resources +++ b/hooks/after_prepare/gen_resources @@ -1,3 +1,7 @@ -#!/bin/sh -make clean-resources -make resources +#! /usr/bin/env bash +IFS=, +platforms=($CORDOVA_PLATFORMS) + +resources=("${platforms[@]/%/-resources}") +make "${resources[@]/#/clean-}" +make "${resources[@]}" -- cgit v1.2.3-54-g00ecf