]> Dogcows Code - chaz/yoink/blobdiff - build/process.sh
need the configure script
[chaz/yoink] / build / process.sh
diff --git a/build/process.sh b/build/process.sh
new file mode 100755 (executable)
index 0000000..d173a79
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+#
+# Yoink
+# Run this as a filter to process `.in' files.
+#
+
+test -x "functions.sh" && . "functions.sh"
+test -x "build/functions.sh" && . "build/functions.sh"
+
+tmpfile=$(mktemp "tmp-XXXXXXXX") || die "could not create temp file"
+vars=$(export -p)
+echo "$vars" | sed -n "s/^export \([A-Za-z0-9_]*\)\{1,\}=[\"']\{0,1\}\([^\"'=]*\)[\"']\{0,1\}$/s=@\1@=\2=g/g p" >"$tmpfile"
+sed -f "$tmpfile" <"$1" >"$2"
+rm -f "$tmpfile"
+
This page took 0.018542 seconds and 4 git commands to generate.