More experimentation with the dependency logging features of cpp and xsltproc.
[mgear/mgear.git] / experiments / sip
diff --git a/experiments/sip b/experiments/sip
deleted file mode 100755 (executable)
index 12e0579..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-# Simple include processor as an example of a dependency-logging command.
-# sip input output depoutput
-# Follows `include foo' at the beginning of a line.
-
-exec 3>"$3"
-exec >"$2"
-
-function do_read {
-       echo "$1" >&3
-       while IFS='' read line; do
-               if [[ "$line" == "include "* ]]; then
-                       do_read "${line#include }"
-               else
-                       echo "$line"
-               fi
-       done <"$1"
-}
-
-do_read "$1"