Skip to content

Commit

Permalink
Yeah, backslashes... batch file still untested.
Browse files Browse the repository at this point in the history
  • Loading branch information
davebalmer committed Sep 28, 2010
1 parent 546ad3a commit 4f65da4
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
@echo off
if not exists ./js/core/_jo.js goto wrongdir
if exists js\core\_jo.js goto start
goto wrongdir

echo "Building js/jo.js"
:start
echo "Building js\jo.js"

cd js/core
copy log.js + _jo.js + dom.js + event.js + subject.js + time.js + yield.js + cache.js + chain.js + clipboard.js + local.js ../jo_core.js
cd js\core
copy log.js + _jo.js + dom.js + event.js + subject.js + time.js + yield.js + cache.js + chain.js + clipboard.js + local.js ..\jo_core.js

cd ../data
copy datasource.js + database.js + sqldatasource.js + script.js + preference.js ../jo_data.js
cd ..\data
copy datasource.js + database.js + sqldatasource.js + script.js + preference.js ..\jo_data.js

cd ../ui
copy view.js + container.js + control.js + button.js + busy.js + list.js + busy.js + caption.js + card.js + stack.js + scroller.js + divider.js + expando.js + flexrow.js + focus.js + footer.js + gesture.js + group.js + html.js + input.js + label.js + menu.js + passwordinput.js + popup.js + screen.js + shim.js + sound.js + stackscroller.js + tabbar.js + table.js + textarea.js + title.js + toolbar.js ../jo_ui.js
cd ..\ui
copy view.js + container.js + control.js + button.js + busy.js + list.js + busy.js + caption.js + card.js + stack.js + scroller.js + divider.js + expando.js + flexrow.js + focus.js + footer.js + gesture.js + group.js + html.js + input.js + label.js + menu.js + passwordinput.js + popup.js + screen.js + shim.js + sound.js + stackscroller.js + tabbar.js + table.js + textarea.js + title.js + toolbar.js ..\jo_ui.js

cd ..

Expand All @@ -21,17 +23,18 @@ del jo_ui.js

if exists jsmin.exe goto minify
echo "jsmin not found, skipping minification."
cd ..
goto end

:minify
echo "Minifying js/jo.js -> js/jo_min.js"
echo "Minifying js\jo.js -> js\jo_min.js"
jsmin < jo.js > jo_min.js
cd ..
goto end

:wrongdir
echo "OOPS: Run this batch file from the jo source directory, i.e. cd jo first."
goto end

:end
cd ..
echo "Done."

0 comments on commit 4f65da4

Please sign in to comment.