diff options
Diffstat (limited to 'cppe/config/makedepend.py')
-rwxr-xr-x | cppe/config/makedepend.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/cppe/config/makedepend.py b/cppe/config/makedepend.py new file mode 100755 index 00000000000..f5f58436c69 --- /dev/null +++ b/cppe/config/makedepend.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +import fileinput, re + +previous = "" + +for line in fileinput.input(): + line = line.strip() + + if re.compile("^#").search(line, 0): + continue; + + if(previous): + line = previous + " " + line + + if(line[-1] == "\\"): + previous = line[:-2] + continue + else: + previous = "" + + for s in line.split(): + if(s[0] != "/"): + print s, + + print + |