about summary refs log tree commit diff
path: root/REORG.TODO/manual/texis.awk
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/manual/texis.awk')
-rw-r--r--REORG.TODO/manual/texis.awk21
1 files changed, 21 insertions, 0 deletions
diff --git a/REORG.TODO/manual/texis.awk b/REORG.TODO/manual/texis.awk
new file mode 100644
index 0000000000..153724755d
--- /dev/null
+++ b/REORG.TODO/manual/texis.awk
@@ -0,0 +1,21 @@
+BEGIN {
+    print "texis = \\";
+    for(x = 1; x < ARGC; x++)
+    {
+	input[0] = ARGV[x];
+	print ARGV[x], "\\";
+	for (s = 0; s >= 0; s--)
+	{
+	    while ((getline < input[s]) > 0)
+	    {
+		if ($1 == "@include")
+		{
+		    input[++s] = $2;
+		    print $2, "\\";
+		}
+	    }
+	    close(input[s]);
+	}
+    }
+    print "";
+}