Permalink
Browse files

added build script a la mootools-core/more (uses the submodule Packager:

  git submodule add git://github.com/kamicane/packager.git Packager
  • Loading branch information...
GerHobbelt committed Jan 15, 2011
1 parent 05d848d commit d7bb0bf13feea71b07da68011b8ef99936c03350
Showing with 44 additions and 8 deletions.
  1. +32 −0 build
  2. +12 −8 package.yml
View
32 build
@@ -0,0 +1,32 @@
+#!/usr/bin/env php
+<?php
+
+$stderr = fopen('php://stderr', 'w');
+
+require dirname(__FILE__) . '/Packager/packager.php';
+
+$executable = array_shift($argv);
+$package = dirname(__FILE__);
+
+$pkg = new Packager($package . '/package.yml');
+
+fwrite($stderr, "Packager is building MochaUI\n\n");
+fwrite($stderr, "Included Components:\n");
+
+$no_compat = false;
+
+$files = (empty($argv)) ? $pkg->get_all_files() : $pkg->components_to_files($argv);
+
+$files = $pkg->complete_files($files);
+
+foreach ($files as $file){
+ fwrite($stderr, "- $file: [" . implode(", ", $pkg->get_file_provides($file)) . "]\n");
+}
+
+$output = $pkg->build($files, array(), array(), array());
+
+echo $output;
+
+fclose($stderr);
+
+?>
View
@@ -20,11 +20,15 @@ authors:
- "Harry Roberts"
sources:
- - "src/mui/Core.js"
- - "src/mui/Content.js"
- - "src/mui/Window.js"
- - "src/mui/Modal.js"
- - "src/mui/Desktop.js"
- - "src/mui/Column.js"
- - "src/mui/Panel.js"
- - "src/mui/Taskbar.js"
+ - "Source/Core/Core.js"
+ - "Source/Core/Canvas.js"
+ - "Source/Core/Content.js"
+ - "Source/Core/Desktop.js"
+ - "Source/Controls/column/Column.js"
+ - "Source/Controls/panel/Panel.js"
+ - "Source/Controls/taskbar/Taskbar.js"
+ - "Source/Controls/window/Window.js"
+ - "Source/Controls/window/Modal.js"
+ - "Source/Core/Themes.js"
+
+

0 comments on commit d7bb0bf

Please sign in to comment.