From 7b4766c246dc4e776720b8fd206bc96da703ab30 Mon Sep 17 00:00:00 2001 From: Bryan Berry Date: Wed, 30 Dec 2009 15:17:59 +0000 Subject: build part of script now works, still need to do bundling part --- diff --git a/bin/.#kbuild.js b/bin/.#kbuild.js new file mode 120000 index 0000000..4e6986c --- /dev/null +++ b/bin/.#kbuild.js @@ -0,0 +1 @@ +hitman@xiaopo.5847:1262076865 \ No newline at end of file diff --git a/bin/kbuild.js b/bin/kbuild.js index 11abbab..b288b64 100644 --- a/bin/kbuild.js +++ b/bin/kbuild.js @@ -44,13 +44,13 @@ var parseOptions = function(){ parser.option('--lessons-dir', 'lessonsDir') .help("directory where lesson repositories stored") .set(); - + /* parser.option('--bundle-type', 'bundleType') .help("type of bundle to be built") .def('xo') .choices(['xo', 'web']) .set(); - + */ parser.option('--bundle-dir', 'bundleDir') .help("directory where this script will checkout the karma bundle from source control") .set(); @@ -169,9 +169,11 @@ var prepareBuildDir = function(){ } else if (bundleType === "xo"){ //copy over XO bundle and lesson stuff cmd = "cp -r " + bundleDir + "/* " + buildDir + - "; rm -rf " + buildDir + "/karma/lessons/" + - "; mkdir " + buildDir + "/karma/lessons/" + - "; cp -r " + lessonsDir + "/* " + buildDir + "/karma/lessons/"; + "; rm -rf " + bundleDir + "/karma/lessons/" + + "; mkdir " + bundleDir + "/karma/lessons" + + "; cp -r " + lessonsDir + "/* " + buildDir + "/karma/lessons/" + + "; find " + buildDir + " -d -name '.git' " + + "-exec rm -rf {} \\; "; print(cmd); proc = os.popen(cmd); print(proc.stdout.read()); -- cgit v0.9.1