OpenLayers OpenLayers

Changeset 1747

Show
Ignore:
Timestamp:
10/31/06 18:18:06 (2 years ago)
Author:
tschaub
Message:

building for windows users

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/tschaub/wc/tools/mergejs.py

    r1746 r1747  
    156156    ## Find all the Javascript source files 
    157157    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("\\", "/") 
    161162                if cfg and cfg.include: 
    162163                    if filepath in cfg.include or filepath in cfg.forceFirst: 
    163164                        allFiles.append(filepath) 
    164165                elif (not cfg) or (filepath not in cfg.exclude): 
    165             allFiles.append(filepath) 
     166                    allFiles.append(filepath) 
     167                     
    166168 
    167169    ## Header inserted at the start of each file in the output 
     
    176178    for filepath in allFiles: 
    177179        print "Importing: %s" % filepath 
    178    fullpath = os.path.join(sourceDirectory, filepath) 
     180        fullpath = os.path.join(sourceDirectory, filepath) 
    179181        content = open(fullpath, "U").read() # TODO: Ensure end of line @ EOF? 
    180182        files[filepath] = SourceFile(filepath, content) # TODO: Chop path?