summaryrefslogtreecommitdiff
path: root/devel/python/modules.awk
diff options
context:
space:
mode:
Diffstat (limited to 'devel/python/modules.awk')
-rw-r--r--devel/python/modules.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/devel/python/modules.awk b/devel/python/modules.awk
new file mode 100644
index 00000000..5e01a9d1
--- /dev/null
+++ b/devel/python/modules.awk
@@ -0,0 +1,7 @@
+$0 == "*static*" {static = 1; next}
+$0 == "*shared*" {static = 0; next}
+
+NF && !/^#/ && static {
+ for (i = 2; i <= NF; ++i)
+ print $i
+}