about summary refs log blame commit diff
path: root/tests/substituter2.sh
blob: 1bcf65a54d0ed305f550d274a59696a2e57cfa7e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
















                                        
#! /bin/sh -e
echo substituter2 args: $* >&2

if test $1 = "--query-paths"; then
    cat $TEST_ROOT/sub-paths
elif test $1 = "--query-info"; then
    shift
    for i in in $@; do
        echo $i
        echo "" # deriver
        echo 0 # nr of refs
    done
elif test $1 = "--substitute"; then
    exit 1
else
    echo "unknown substituter operation"
    exit 1
fi