source:
trunk/essentials/dev-lang/python/Mac/Extras.install.py@
3397
| Last change on this file since 3397 was 3225, checked in by , 19 years ago | |
|---|---|
| File size: 1.6 KB | |
| Line | |
|---|---|
| 1 | """Recursively copy a directory but skip undesired files and |
| 2 | directories (CVS, backup files, pyc files, etc)""" |
| 3 | |
| 4 | import sys |
| 5 | import os |
| 6 | import shutil |
| 7 | |
| 8 | verbose = 1 |
| 9 | debug = 0 |
| 10 | |
| 11 | def isclean(name): |
| 12 | if name == 'CVS': return 0 |
| 13 | if name == '.cvsignore': return 0 |
| 14 | if name == '.DS_store': return 0 |
| 15 | if name == '.svn': return 0 |
| 16 | if name.endswith('~'): return 0 |
| 17 | if name.endswith('.BAK'): return 0 |
| 18 | if name.endswith('.pyc'): return 0 |
