blob: ff709985d3af1ad02fd7d0629de3756d2a3fe666 (
plain) (
tree)
|
|
#! /bin/sh
#set -x
while read x y drv rest; do
echo "HOOK for $drv" >&2
outPath=`sed 's/Derive(\[("out",\"\([^\"]*\)\".*/\1/' $drv`
echo "output path is $outPath" >&2
if `echo $outPath | grep -q input-1`; then
echo "# accept" >&2
read inputs
read outputs
mkdir $outPath
echo "BAR" > $outPath/foo
else
echo "# decline" >&2
fi
done
|