<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 EXTRA_DIST = \
-	$(wildcard *.js) \
-	$(wildcard *.xaml)
+	$(wildcard mtk/*.js) \
+	$(wildcard *.js)
 
 MAINTAINERCLEANFILES = Makefile.in</diff>
      <filename>player/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 RESOURCE_OUT_FILE = mmp-resources.h
 RESOURCE_VAR_PREFIX = MLMP_RESOURCE_
+RESOURCE_ALL_VAR_NAME = MLMP_RESOURCES_ALL
 RESOURCES = \
-	$(top_srcdir)/player/player.xaml \
-	$(top_srcdir)/player/player.js \
-	$(top_srcdir)/player/wmp-controls.js
+	$(wildcard $(top_srcdir)/player/*.js) \
+	$(wildcard $(top_srcdir)/player/mtk/*.js)
 
 RESOURCES_BUILD = $(foreach res, $(RESOURCES), \
 	`echo $(RESOURCE_VAR_PREFIX)$(notdir $(res)) \
@@ -12,7 +12,7 @@ RESOURCES_BUILD = $(foreach res, $(RESOURCES), \
 	$(res))
 
 $(RESOURCE_OUT_FILE): $(srcdir)/generate-resource $(RESOURCES)
-	$(SHELL) $&lt; $@ $(RESOURCES_BUILD)
+	$(SHELL) $&lt; $@ $(RESOURCE_ALL_VAR_NAME) $(RESOURCES_BUILD)
 
 mpplugindir=$(BROWSER_PLUGIN_DIR)
 mpplugin_LTLIBRARIES = libmoonmp-plugin.la</diff>
      <filename>plugin/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -20,6 +20,9 @@ out_define=&quot;_$(echo $out |
 	tr '[:lower:]' '[:upper:]' | 
 	sed 's,[-.],_,g;s,[^A-Z_],,g')&quot;
 
+all_name=$1; shift
+all_array=&quot;&quot;
+
 [[ -z $out ]] &amp;&amp; 
 	bail &quot;You must specify an output file first&quot;
 
@@ -33,15 +36,6 @@ while (($# &gt; 0)); do
 	[[ $inputs -eq 0 ]] &amp;&amp; {
 		(echo &quot;/* &quot;
 			echo &quot; * $out: auto-generated embedded resources &quot;
-			echo &quot; * &quot;
-			echo &quot; * This file was created with the command: &quot;
-			echo &quot; * &quot;
-			echo &quot; *   $ $0 $out \ &quot;
-			for ((i=1; i&lt;$#; i+=2)); do
-				argset=&quot; *         $(eval &quot;echo \$$i \$$(($i+1))&quot;)&quot;
-				[[ $i -lt $(($#-1)) ]] &amp;&amp; argset=&quot;$argset \\&quot;
-				echo &quot;$argset&quot;
-			done
 			echo &quot; */ &quot;
 			echo
 			echo &quot;#ifndef $out_define&quot;
@@ -50,6 +44,7 @@ while (($# &gt; 0)); do
 	}
 
 	((inputs++))
+	all_array=&quot;$all_array $var&quot;
 
 	(echo &quot;/* Embedded Resource $inputs ($input) */&quot;
 		table=$(hexdump -e '&quot;    &quot; 16/1 &quot;0x%02x, &quot; &quot;\n&quot;' $input | sed -r 's/, 0x[ ,]+.*/, 0x00/')
@@ -58,12 +53,19 @@ while (($# &gt; 0)); do
         [[ ${table:$((${#table}-1))} = &quot;,&quot; ]] &amp;&amp; echo &quot;    0x00&quot;
 		echo &quot;};&quot;
 		echo) &gt;&gt; $out
-	
+		
 	shift; shift
 done
 
 [[ $inputs -eq 0 ]] &amp;&amp; 
 	bail &quot;You must specify at least one variable/input file pair&quot;
 
+echo &quot;static const char const * $all_name [] = {&quot; &gt;&gt; $out
+for var in $all_array; do
+	echo &quot;    ${var},&quot; &gt;&gt; $out
+done
+echo &quot;    NULL&quot; &gt;&gt; $out
+echo &quot;};&quot; &gt;&gt; $out
+echo &gt;&gt; $out
 echo &quot;#endif /* $out_define */&quot; &gt;&gt; $out
 </diff>
      <filename>plugin/generate-resource</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b0629e5b999a723504d0e5a885dddc051ebc1560</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Bockover</name>
    <email>abockover@novell.com</email>
  </author>
  <url>http://github.com/abock/moonshine/commit/160e1efe18226cac29b22ab442be03c6f2e4f0b2</url>
  <id>160e1efe18226cac29b22ab442be03c6f2e4f0b2</id>
  <committed-date>2009-02-09T02:33:40-08:00</committed-date>
  <authored-date>2009-02-09T02:33:40-08:00</authored-date>
  <message>Fix build, and generate an 'all' array for the embedded resources so they don't need to be referenced by name in the plugin code</message>
  <tree>ba3a4c718fd9c424472dd9b14aafd25621c58227</tree>
  <committer>
    <name>Aaron Bockover</name>
    <email>abockover@novell.com</email>
  </committer>
</commit>
