2007-08-13 15:15:02 +02:00
|
|
|
#! /bin/sh -e
|
|
|
|
echo substituter args: $* >&2
|
2005-01-25 14:00:12 +01:00
|
|
|
|
2007-08-13 15:15:02 +02:00
|
|
|
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
|
|
|
|
mkdir $2
|
|
|
|
echo "Hallo Wereld" > $2/hello
|
|
|
|
else
|
|
|
|
echo "unknown substituter operation"
|
|
|
|
exit 1
|
|
|
|
fi
|