From e1df0287aa1534bfb93b95a9969229646e91d56d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 18 Nov 2007 17:00:15 +0000 Subject: [PATCH] added python script to generate file listing for make file from asio directory structure --- list_files.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 list_files.py diff --git a/list_files.py b/list_files.py new file mode 100755 index 000000000..07f52e556 --- /dev/null +++ b/list_files.py @@ -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]) +