#!/usr/bin/env bash

usage() {
	echo This program is intended to be run from within acme.  You should launch
	echo it by middle clicking on "ds" to date stamp your exit in the log.
}

if ! 9p ls acme/ >/dev/null; then
	usage
	exit -1
fi

LOGFILE=${HOME}/var/log/ap.log

NAME=$(9p read acme/$winid/tag|awk '{ print $1 }')


echo "$(date): AP_EXIT: $NAME ($winid)" >> $LOGFILE 



