summaryrefslogtreecommitdiff
path: root/hooks/after_prepare/gen_resources
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/after_prepare/gen_resources')
-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[@]}"