Changeset 1747
- Timestamp:
- 10/31/06 18:18:06 (2 years ago)
- Files:
-
- sandbox/tschaub/wc/build/build.bat (added)
- sandbox/tschaub/wc/tools/mergejs.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/tschaub/wc/tools/mergejs.py
r1746 r1747 156 156 ## Find all the Javascript source files 157 157 for root, dirs, files in os.walk(sourceDirectory): 158 for filename in files: 159 if filename.endswith(SUFFIX_JAVASCRIPT) and not filename.startswith("."): 160 filepath = os.path.join(root, filename)[len(sourceDirectory)+1:] 158 for filename in files: 159 if filename.endswith(SUFFIX_JAVASCRIPT) and not filename.startswith("."): 160 filepath = os.path.join(root, filename)[len(sourceDirectory)+1:] 161 filepath = filepath.replace("\\", "/") 161 162 if cfg and cfg.include: 162 163 if filepath in cfg.include or filepath in cfg.forceFirst: 163 164 allFiles.append(filepath) 164 165 elif (not cfg) or (filepath not in cfg.exclude): 165 allFiles.append(filepath) 166 allFiles.append(filepath) 167 166 168 167 169 ## Header inserted at the start of each file in the output … … 176 178 for filepath in allFiles: 177 179 print "Importing: %s" % filepath 178 fullpath = os.path.join(sourceDirectory, filepath)180 fullpath = os.path.join(sourceDirectory, filepath) 179 181 content = open(fullpath, "U").read() # TODO: Ensure end of line @ EOF? 180 182 files[filepath] = SourceFile(filepath, content) # TODO: Chop path?
