# RCS stuff:
#
# rlogsum works just like rlog but its output contains only lines of the 
# form <revision> <date>,<time> <author> <state> <rcs-file> for selected 
# revisions. This is a helpful command to produce time-sorted revision logs 
# across a set of files.
#
alias rlogsum 'rlog \!* | egrep "^revision[ ]+|^date:[ ]+" | \\
               sed -e "s/^revision  *//" \\
                   -e "s/ *locked by:.*/ /" \\
                   -e "s/^\(date: *\)\([^ ]*\)\( \)/\2,/" \\
                   -e "s/; *author: */ /"   \\
                   -e "s/; *state: */ /"     \\
                   -e "s|;.*| \!$%|" |     \\
               tr -ds "\012" " " | tr "%" "\012"'
#
# sortsum takes an rlog summary file created by one or more calls to rlogsum
# and sorts it by the time field. rsortsum sorts such that the newest
# revision is the first line in the output.
#
alias sortsum 'sort +2 -3 \!*'
alias rsortsum 'sort -r +2 -3 \!*'
#
# Miscellaneous
#
# A recursive fgrep (e.g., rfgrep 'node*.lisp' pattern)
alias rfgrep find . -name \!:1 -exec fgrep \!:2 {} \\\; -print -exec echo ================================== \\\; -exec echo \' \' \\\;
