7 echo "$1" | sed -e 's/@/@@/g'
11 package=$(escape "$2")
13 principal=$(escape "$4")
15 base=build.hooks.post_submit.zephyr
16 class=$(invirt-getconf "$base.class" 2>/dev/null || :)
17 instance=$(invirt-getconf "$base.instance" 2>/dev/null || :)
18 zsig=$(invirt-getconf "$base.zsig" 2>/dev/null || :)
20 if [ -z "$class" ]; then
21 echo "I don't know where to send a commit zephyr!" >&2
22 echo "Please provide a value for $base.class in" >&2
23 echo "your invirt config file." >&2
27 (echo "A new job has been submitted to the Invirtibuilder:";
29 echo "pocket: $pocket";
30 echo "package: $package";
31 echo "commit: $commit";
32 echo "principal: $principal") | zwrite -c "$class" -i "${instance:-$commit}" -s "${zsig:-Git}: $pocket" -d