]> Dogcows Code - chaz/yoink/blob - build/process.sh
need the configure script
[chaz/yoink] / build / process.sh
1 #!/bin/sh
2
3 #
4 # Yoink
5 # Run this as a filter to process `.in' files.
6 #
7
8 test -x "functions.sh" && . "functions.sh"
9 test -x "build/functions.sh" && . "build/functions.sh"
10
11 tmpfile=$(mktemp "tmp-XXXXXXXX") || die "could not create temp file"
12 vars=$(export -p)
13 echo "$vars" | sed -n "s/^export \([A-Za-z0-9_]*\)\{1,\}=[\"']\{0,1\}\([^\"'=]*\)[\"']\{0,1\}$/s=@\1@=\2=g/g p" >"$tmpfile"
14 sed -f "$tmpfile" <"$1" >"$2"
15 rm -f "$tmpfile"
16
This page took 0.033163 seconds and 4 git commands to generate.