CVSROOT ciabot,1.5,1.6
Nathaniel Smith <[email protected]> Mon, 02 Jun 2003 06:21:32 -0500
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/CVSROOT In directory purcel:/tmp/cvs-serv24342 Modified Files: ciabot Log Message: Add more documentation to ciabot script. Another test of message truncation... Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Index: ciabot =================================================================== RCS file: /cvs/fresco/CVSROOT/ciabot,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ciabot 2 Jun 2003 11:14:18 -0000 1.5 +++ ciabot 2 Jun 2003 11:21:29 -0000 1.6 @@ -10,13 +10,21 @@ projectname="fresco" # will announce to channel #<whatever you put here> returnaddress="[email protected]" + +# You should turn stripnewlines on if you tend to write short blocks +# of text, and off if you tend to have any formatting. If you stick +# full changelog entries in your commit messages, definitely turn it +# off. stripnewlines=false #stripnewlines=true + # For non-sourceforge projects: commitaddress="[email protected]" # For sourceforge projects: #commitaddress="[email protected]" +#################### End of what you'll generally need to change + echo -n "Notifying #${projectname}..." maxlines=6 @@ -26,12 +34,12 @@ message=`echo "$message" | sed "1,${lineno}d"` newline=`echo` -if $stripnewlines; then - message=`echo -n "$message" | tr '\n\r' ' '` -fi - if [ "$message" != `echo -n "$message" | head -n $maxlines` ]; then message="`echo -n \"$message\" | head -n $(($maxlines - 1))`$newline<...>" +fi + +if $stripnewlines; then + message=`echo -n "$message" | tr '\n\r' ' '` fi module=`echo $1 | cut -d/ -f1`