#!/bin/bash set -e recipients=martin@martindengler.com builddir=$1 buildnamefile=$2 buildname=$(<$buildnamefile) announcefile=$builddir/$buildname.announcement.txt nandsize=$(<$builddir/$buildname.img.size.txt) nandsizechange=$(<$builddir/$buildname.img.size-change.txt) treesize=$(<$builddir/$buildname.tree.size.txt) treesizechange=$(<$builddir/$buildname.tree.size-change.txt) cat > $announcefile < /dev/sdX Build date: $(date) EOF mail -s "New SoaS-on-XO-1 build done: $buildname" $recipients < $announcefile