7 echo "$1" | sed -e 's/@/@@/g'
10 build_id=$(escape "$1")
12 package=$(escape "$3")
14 principal=$(escape "$5")
15 version=$(escape "$6")
16 inserted_at=$(escape "$7")
18 base=build.hooks.pre_build.zephyr
19 class=$(invirt-getconf "$base.class" 2>/dev/null || :)
20 instance=$(invirt-getconf "$base.instance" 2>/dev/null || :)
21 zsig=$(invirt-getconf "$base.zsig" 2>/dev/null || :)
23 if [ -z "$class" ]; then
24 echo "I don't know where to send a commit zephyr!" >&2
25 echo "Please provide a value for $base.class in" >&2
26 echo "your invirt config file." >&2
30 (echo "About to begin an Invirtibuild of $package v$version in $pocket."
31 echo "from commit $commit.";
33 echo "(Build $build_id was submitted by $principal at $inserted_at.)") | zwrite -c "$class" -i "${instance:-build_$build_id}" -s "${zsig:-pre-build}: $pocket" -d