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

Diego Biurrun CVS diego
Fri Jan 13 02:27:03 CET 2006


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}





More information about the ffmpeg-cvslog mailing list