[Ffmpeg-cvslog] CVS: CVSROOT style.sh,1.4,1.5
Diego Biurrun CVS
diego
Sat Apr 29 18:05:41 CEST 2006
Update of /cvsroot/ffmpeg/CVSROOT
In directory mail:/var2/tmp/cvs-serv17066
Modified Files:
style.sh
Log Message:
Check for files that do not end in newlines.
Index: style.sh
===================================================================
RCS file: /cvsroot/ffmpeg/CVSROOT/style.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- style.sh 13 Feb 2006 12:17:36 -0000 1.4
+++ style.sh 29 Apr 2006 16:05:39 -0000 1.5
@@ -19,6 +19,16 @@
fi
done
+for file in $FILELIST; do
+ if [ `tail -c1 $file | wc -l` = 0 ]; then
+ echo
+ echo "$file does not end in a newline."
+ echo "Commit aborted, fix the issue and try again."
+ echo
+ exit 1
+ fi
+done
+
#Makefiles and clean-diff may contain tabs.
FILELIST="`echo $FILELIST | sed 's/Makefile\|common.mak\|clean-diff//g'`"
More information about the ffmpeg-cvslog
mailing list