diff options
author | Bryan Berry <bryan@olenepal.org> | 2009-12-30 15:17:59 (GMT) |
---|---|---|
committer | Bryan Berry <bryan@olenepal.org> | 2009-12-30 15:17:59 (GMT) |
commit | 7b4766c246dc4e776720b8fd206bc96da703ab30 (patch) | |
tree | 7ee1b2fad620983aeacde42c54f4392c5d5d778b | |
parent | 28e90ec31affc14099b7bea96d0b98f19f5fe1bb (diff) |
build part of script now works, still need to do bundling part
l--------- | bin/.#kbuild.js | 1 | ||||
-rw-r--r-- | bin/kbuild.js | 12 |
2 files changed, 8 insertions, 5 deletions
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()); |