summaryrefslogtreecommitdiff
path: root/bin/filter
diff options
context:
space:
mode:
authorJim Lawson2015-05-12 15:19:55 -0700
committerJim Lawson2015-07-24 15:50:53 -0700
commite74cce036a7e9f8a08a020f1e007b22098db890d (patch)
treef15f841da5deb4ba6cbbad581ae7db35a809d461 /bin/filter
parent2ae50411cbc5e2cd5fdc9ca4069b9c5f64919bc4 (diff)
Use CHISEL_BIN, CX, generalize generated/targetDir, convert filter to python, cd into targetDir before launching simulator (via Driver).
Diffstat (limited to 'bin/filter')
-rwxr-xr-xbin/filter14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/filter b/bin/filter
new file mode 100755
index 00000000..0038ba47
--- /dev/null
+++ b/bin/filter
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+import fileinput
+import sys
+
+for line in fileinput.input():
+ for ch in line:
+ och = ch
+ if ch == '#':
+ och = '_'
+ elif ch == '$':
+ och = "::"
+ sys.stdout.write(och)
+
+