+diffgdbday: +comment as a template
[nethome.git] / bin / diffgdbday
1 #! /bin/sh
2 if [[ $1 =~ ^- ]];then
3   WHEN=now
4 else
5   WHEN="$1"
6   shift
7 fi
8 TODAY=`date -d "$WHEN" +%Y%m%d`
9 #YESTERDAY=`date -d "12 Apr" +%Y%m%d`
10 YESTERDAY=`date -d "$TODAY - 1 day" +%Y%m%d`
11 cd $HOME/hammock
12 #for THIS in ${TODAY}Build-{gdbcvs,fedoragdb}*;do 
13 for THIS in ${TODAY}Build-{gdb,binutils}cvs*;do 
14   PREV=$YESTERDAY`echo $THIS|sed 's/^........//'`
15   diffgdbdir "$@" $PREV $THIS
16 done
17 echo diffgdbday done