summaryrefslogtreecommitdiff
path: root/sedsubst
blob: da01055eea03aa13fd5540eb70a72519dc669a34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#/bin/sh
#

source=$1
output=$2
mode=$3
shift 3;

echo "sedsubst: generating $output from $source"
test -f $output && rm -f $output
sed "$@" $source > $output
chmod $mode $output