X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fscripts%2Fcvsdiffclient;h=45325c7c480084abd6aea4becf0ee23e214602a3;hb=23de47e82bd999ec651f927097922413527cca71;hp=dab1e90d2fac03add74a833d00036e9a3fe55532;hpb=4ffdc79d3f2369979e0ed86e69e69c388711f3eb;p=fs%2Flustre-release.git diff --git a/lustre/scripts/cvsdiffclient b/lustre/scripts/cvsdiffclient index dab1e90..45325c7 100755 --- a/lustre/scripts/cvsdiffclient +++ b/lustre/scripts/cvsdiffclient @@ -1,12 +1,27 @@ #!/bin/bash +# Put this script and cvs-modified-files.pl into your PATH (~bin is good) and +# +# export CVSEDITOR=cvsdiffclient +# +# in your .bashrc and you will get a nice bunch of CVS commit reminders: +# +# b= +# r= +# +# Remember to remove the leading "CVS: " part of the comment before saving +# your commit comment if you want those entries to be saved. [ -f .mergeinfo ] && . ./.mergeinfo FILES=`cvs-modified-files.pl $1` TMP=`mktemp /tmp/cvslog-XXXXXXXX` if [ -f $TMP ]; then - [ -f .mergeinfo ] && \ - echo "CVS: Update $child from $parent ($date)" >> $TMP + if [ -f .mergeinfo ]; then + . .mergeinfo + [ "$OPERATION" ] || OPERATION=Update + [ "$OPERWHERE" ] || OPERWHERE=from + echo "CVS: $OPERATION $child $OPERWHERE $parent ($date)" >> $TMP + fi echo "CVS: did you update the ChangeLog for a bug fix?" >> $TMP echo "CVS: b=" >> $TMP echo "CVS: r=" >> $TMP