summaryrefslogtreecommitdiff
path: root/cppe/config/makedepend.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-03-22 15:37:07 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-03-22 15:37:07 +0000
commitfbdaac7a3e51b93bb9628e6f03bfaa6be93fb2a6 (patch)
tree5a8dd9b64e25a36516d8278fb617396d56e37488 /cppe/config/makedepend.py
parentAdded initial IceJE tree (diff)
downloadice-fbdaac7a3e51b93bb9628e6f03bfaa6be93fb2a6.tar.bz2
ice-fbdaac7a3e51b93bb9628e6f03bfaa6be93fb2a6.tar.xz
ice-fbdaac7a3e51b93bb9628e6f03bfaa6be93fb2a6.zip
Added initial Ice-E code
Diffstat (limited to 'cppe/config/makedepend.py')
-rwxr-xr-xcppe/config/makedepend.py35
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
+