added python script to generate file listing for make file from asio directory structure

This commit is contained in:
Arvid Norberg 2007-11-18 17:00:15 +00:00
parent f271a3b74b
commit e1df0287aa
1 changed files with 18 additions and 0 deletions

18
list_files.py Executable file
View File

@ -0,0 +1,18 @@
#!/bin/python
import os
import sys
def list_directory(path):
tree = os.walk(path)
for i in tree:
if os.path.split(i[0])[1] == 'CVS': continue
if os.path.split(i[0])[1] == '.svn': continue
for file in i[2]:
if file.startswith('.#'): continue
if file == '.DS_Store': continue
print os.path.join(i[0], file) + ' \\'
list_directory(sys.argv[1])