summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-02-25 12:20:48 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-02-25 12:20:48 -0500
commit132cba71a8a6c3f57ab57f95626d644d69392b4b (patch)
tree782dca78b3ba963cbf5fc27bb3f003aa12095167 /hooks
parent4a62fe6388e75ed11f61dab23c63721fa52aa54e (diff)
clean up build system
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/after_prepare/gen_resources10
1 files changed, 7 insertions, 3 deletions
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[@]}"