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
















                                                     
set -x

drv=$1

echo "HOOK for $drv"

outPath=$(sed 's/Derive(\[\"\([^\"]*\)\".*/\1/' $drv)

echo "output path is $outPath"

if $(echo $outPath | grep -q input-1); then
    mkdir $outPath
    echo "BAR" > $outPath/foo
    exit 100
fi

exit 101