Changeset 7308
- Timestamp:
- 02/13/07 20:31:50 (22 months ago)
- Location:
- branches/0.4/buildscripts
- Files:
-
- 3 modified
-
buildUtil.js (modified) (3 diffs)
-
stripComments.js (modified) (1 diff)
-
webbuild/webbuild.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/buildscripts/buildUtil.js
r7302 r7308 852 852 } 853 853 854 buildUtil.stripComments = function(/*String*/startDir ){854 buildUtil.stripComments = function(/*String*/startDir, /*boolean*/suppressDojoCopyright){ 855 855 //summary: strips the JS comments from all the files in "startDir", and all subdirectories. 856 var copyright = new String(readFile("copyright.txt"));856 var copyright = suppressDojoCopyright ? "" : new String(readFile("copyright.txt")) + buildUtil.getLineSeparator(); 857 857 var fileList = buildUtil.getFilteredFileList(startDir, /\.js$/, true); 858 858 if(fileList){ … … 885 885 copyrightText += singleLineMatches.join("\r\n"); 886 886 } 887 copyrightText += buildUtil.getLineSeparator(); 887 888 }else{ 888 889 copyrightText = copyright; … … 908 909 909 910 //Write out the file with appropriate copyright. 910 buildUtil.saveUtf8File(fileList[i], copyrightText + buildUtil.getLineSeparator() +fileContents);911 } 912 } 913 } 914 } 915 911 buildUtil.saveUtf8File(fileList[i], copyrightText + fileContents); 912 } 913 } 914 } 915 } 916 -
branches/0.4/buildscripts/stripComments.js
r7280 r7308 1 1 load("buildUtil.js"); 2 buildUtil.stripComments(arguments[0] );2 buildUtil.stripComments(arguments[0], arguments[1]); -
branches/0.4/buildscripts/webbuild/webbuild.sh
r7303 r7308 43 43 #Got to buildscripts dir and run stripComments for web build. 44 44 cd .. 45 java -jar lib/custom_rhino.jar stripComments.js ../src 45 java -jar lib/custom_rhino.jar stripComments.js ../src true 46 46 47 47 #Now in release folder. Bundle it all up.