[Ffmpeg-cvslog] CVS: CVSROOT style.sh, NONE, 1.1 commitinfo, 1.1, 1.2

Benjamin Larsson banan
Fri Jan 13 12:48:53 CET 2006


Diego Biurrun CVS wrote:

>Update of /cvsroot/ffmpeg/CVSROOT
>In directory mail:/var2/tmp/cvs-serv2203
>
>Modified Files:
>	commitinfo 
>Added Files:
>	style.sh 
>Log Message:
>Coding style script that prohibits tabs and trailing whitespace.
>
>
>--- NEW FILE: style.sh ---
>#!/bin/sh
>#
># Check committed files except Makefiles for tab characters
># and abort the commit if they contain tabs.
>
>FILELIST="`echo $@ | sed s/Makefile//`"
>
>for file in $FILELIST; do
>    if grep -e '        ' -e ' $' $file > /dev/null; then
>        echo
>        echo "Tabs or trailing whitespace found in $file."
>        echo "Commit aborted, fix the issue and try again."
>        echo
>        exit 1
>    fi
>done
>
>exit 0
>
>Index: commitinfo
>===================================================================
>RCS file: /cvsroot/ffmpeg/CVSROOT/commitinfo,v
>retrieving revision 1.1
>retrieving revision 1.2
>diff -u -d -r1.1 -r1.2
>--- commitinfo	18 Dec 2000 23:30:22 -0000	1.1
>+++ commitinfo	13 Jan 2006 01:27:01 -0000	1.2
>@@ -13,3 +13,5 @@
> #
> # If the name "ALL" appears as a regular expression it is always used
> # in addition to the first matching regex or "DEFAULT".
>+
>+ALL     $CVSROOT/CVSROOT/style.sh %{s}
>  
>
With this is in force I can't commit. I get this error:

Tabs or trailing whitespace found in mpeg12.c.
Commit aborted, fix the issue and try again.

grep: %{s}: No such file or directory
cvs commit: Pre-commit check failed
cvs [commit aborted]: correct above errors first!

I thought the files got filtered sometime ago.

MvH
Benjamin Larsson

-- 
"incorrect information" is an oxymoron. Information is, by definition, factual, correct.





More information about the ffmpeg-cvslog mailing list