load('steal/rhino/steal.js')

steal.File("../jmvcdownload").removeDir()
steal.File("jmvcdownload.zip").remove()
steal.File("../jmvcdownload").mkdir()

var ignore = [".git", ".gitignore", "dist"]

steal.File("../jmvcdownload/documentjs").mkdir()
steal.File("documentjs").copyTo("../jmvcdownload/documentjs/", ignore)

steal.File("../jmvcdownload/funcunit").mkdir()
steal.File("funcunit").copyTo("../jmvcdownload/funcunit/", ignore)

steal.File("../jmvcdownload/jquery").mkdir()
steal.File("jquery").copyTo("../jmvcdownload/jquery/", ignore)

steal.File("../jmvcdownload/steal").mkdir()
steal.File("steal").copyTo("../jmvcdownload/steal/", ignore)

steal.File("js").copyTo("../jmvcdownload/js", [])
steal.File("js.bat").copyTo("../jmvcdownload/js.bat", [])

steal.File("../jmvcdownload").zipDir("javascriptmvc-3.0.0.zip", "..\\jmvcdownload\\")
@@ -749,16 +749,18 @@
 %22, %5B%5D)%0A%0A
+//
 steal.Fi
@@ -818,18 +818,17 @@
 ip%22, %22..
-%5C%5C
+/
 jmvcdown
@@ -835,8 +835,123 @@
 load
-%5C%5C%22)
+/%22)%0ArunCommand(%22sh%22, %22-c%22, 'zip -r javascriptmvc-3.0.0.zip documentjs jquery funcunit steal js js.bat -x %22*/.git/*%22');%0A

build keeps file permissions