aboutsummaryrefslogtreecommitdiff
blob: 6ff567264168d71e455bd69c354e66a1bfbf73d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

declare -i error=0
result=$(mktemp)

for script in $@
do
    sed "s/@srcdir@/$srcdir/" $script.result > $result
    ./variable_printer $script 2>&1 | diff -u $result -
    error+=$?
done

rm -rf $result
exit $error