~fginther/+junk/mbs-hooks-inline

1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -ex

#if we are building in chroot the RESULT_DIR is mounted to /results
if [ -z "$RESULT_DIR" ]; then
    RESULT_DIR=/results
else
    RESULT_DIR=""
fi

wget http://ubuntuone.com/13kWPb7aYzwupfbz5ogeRt -O gtester.xsl
find . -name '*test*.xml' -exec xsltproc -o '/tmp/{}' gtester.xsl '{}' \;
find /tmp -name '*test*.xml' -exec cp '{}' "$RESULT_DIR" \;