X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=buildSDK%2Fcss-minify-bootstrap.js;h=322fd7da93d87962b2868ca9d49048943a418d96;hb=fc32d3336ffe6a4ac93549dab21fd04b7d7056d3;hp=1efe010d8d8cafba29704d2f35c017f5c0a37778;hpb=18921cf76f476d7e709c3549acf46397bbe7ad68;p=roojs1 diff --git a/buildSDK/css-minify-bootstrap.js b/buildSDK/css-minify-bootstrap.js index 1efe010d8d..322fd7da93 100644 --- a/buildSDK/css-minify-bootstrap.js +++ b/buildSDK/css-minify-bootstrap.js @@ -5,14 +5,17 @@ GLib = imports.gi.GLib; // let's see if this works.. // should be run from top level.. var pa = GLib.get_current_dir(); +print(pa); -if (!pa.match(/roojs$/)) { +if (!pa.match(/roojs1$/)) { print("this should be run from the top level directory") Seed.quit(); } -var files = Files.list(pa + '/css-bootstrap'); +var files = File.list(pa + '/css-bootstrap'); + var out = ''; +var debug_out = ''; files.forEach(function(f) { if (f.match(/^roojs/)) { return; @@ -24,11 +27,12 @@ files.forEach(function(f) { return; } + debug_out += "@import url('./" + f + "');\n"; out += pack(File.read(pa + '/css-bootstrap/' +f )); + print(f); }); - - - + File.write(pa+'/css-bootstrap/roojs-bootstrap.css', out); +File.write(pa+'/css-bootstrap/roojs-bootstrap-debug.css', debug_out); \ No newline at end of file