Ignore files starting with ".". On MacOS, these may be resource forks, but in any case, ignoring dotfiles is relatively standard practice.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@839 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-06-30 04:10:14 +00:00
parent 2e79e399b2
commit b064dce7f5

View File

@@ -149,7 +149,7 @@ if __name__ == "__main__":
## Find all the Javascript source files
for root, dirs, files in os.walk(sourceDirectory):
for filename in files:
if filename.endswith(SUFFIX_JAVASCRIPT):
if filename.endswith(SUFFIX_JAVASCRIPT) and not filename.startswith("."):
filepath = os.path.join(root, filename)[len(sourceDirectory)+1:]
if (not cfg) or (filepath not in cfg.exclude):
allFiles.append(filepath)