Sfoglia il codice sorgente

build.py: Adding \n at the end to avoid breakage between files.

Mr.doob 12 anni fa
parent
commit
3f8dba9f9a
2 ha cambiato i file con 138 aggiunte e 12 eliminazioni
  1. 133 10
      build/three.js
  2. 5 2
      utils/build/build.py

File diff suppressed because it is too large
+ 133 - 10
build/three.js


+ 5 - 2
utils/build/build.py

@@ -45,11 +45,14 @@ def main(argv=None):
 	sources = []
 
 	for include in args.include:
-		with open('includes/' + include + '.json','r') as f: files = json.load(f)
+		with open('includes/' + include + '.json','r') as f:
+			files = json.load(f)
 		for filename in files:
 			filename = '../../' + filename;
 			sources.append(filename)
-			with open(filename, 'r') as f: tmp.write(f.read())
+			with open(filename, 'r') as f:
+				tmp.write(f.read())
+				tmp.write('\n')
 
 	tmp.close()
 

Some files were not shown because too many files changed in this diff