paul@632 | 1 | #!/bin/sh |
paul@632 | 2 | |
paul@1024 | 3 | . "`dirname \"$0\"`/common.sh" |
paul@632 | 4 | |
paul@632 | 5 | USER="mailto:paul.boddie@example.com" |
paul@632 | 6 | SENDER="mailto:resource-room-confroom@example.com" |
paul@632 | 7 | FBFILE="$STORE/$USER/freebusy" |
paul@632 | 8 | FBOTHERFILE="$STORE/$USER/freebusy-other/$SENDER" |
paul@632 | 9 | |
paul@640 | 10 | mkdir -p "$PREFS/$USER" |
paul@640 | 11 | echo 'Europe/Oslo' > "$PREFS/$USER/TZID" |
paul@640 | 12 | echo 'share' > "$PREFS/$USER/freebusy_sharing" |
paul@640 | 13 | |
paul@632 | 14 | "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/fb-publish.txt" 2>> $ERROR \ |
paul@632 | 15 | | "$SHOWMAIL" \ |
paul@632 | 16 | > out0.tmp |
paul@632 | 17 | |
paul@632 | 18 | grep -q "^20140401T070000Z${TAB}20140401T080000Z" "$FBOTHERFILE" \ |
paul@632 | 19 | && grep -q "^20140401T080000Z${TAB}20140401T100000Z" "$FBOTHERFILE" \ |
paul@632 | 20 | && echo "Success" \ |
paul@632 | 21 | || echo "Failed" |
paul@632 | 22 | |
paul@632 | 23 | "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/fb-publish-again.txt" 2>> $ERROR \ |
paul@632 | 24 | | "$SHOWMAIL" \ |
paul@632 | 25 | > out0.tmp |
paul@632 | 26 | |
paul@632 | 27 | grep -q "^20140401T070000Z${TAB}20140401T080000Z" "$FBOTHERFILE" \ |
paul@632 | 28 | && ! grep -q "^20140401T080000Z${TAB}20140401T100000Z" "$FBOTHERFILE" \ |
paul@632 | 29 | && grep -q "^20140401T083000Z${TAB}20140401T100000Z" "$FBOTHERFILE" \ |
paul@632 | 30 | && echo "Success" \ |
paul@632 | 31 | || echo "Failed" |