From: <ai...@us...> - 2009-10-20 22:43:03
|
Revision: 10536 http://plplot.svn.sourceforge.net/plplot/?rev=10536&view=rev Author: airwin Date: 2009-10-20 22:42:57 +0000 (Tue, 20 Oct 2009) Log Message: ----------- Check that everything in source lists is actually a regular file. Modified Paths: -------------- trunk/scripts/style_source.sh Modified: trunk/scripts/style_source.sh =================================================================== --- trunk/scripts/style_source.sh 2009-10-20 21:45:53 UTC (rev 10535) +++ trunk/scripts/style_source.sh 2009-10-20 22:42:57 UTC (rev 10536) @@ -114,7 +114,7 @@ export csource_LIST # Top level directory. -csource_LIST=config.h.cmake +csource_LIST="config.h.cmake" # src directory csource_LIST="$csource_LIST src/*.c src/*.h" @@ -124,6 +124,14 @@ export cppsource_LIST="bindings/c++/plstream.cc bindings/c++/plstream.h" +# Check that source file lists actually refer to files. +for source in $csource_LIST $cppsource_LIST ; do + if [ ! -f $source ] ; then + echo $source is not a regular file so this script will not work without further editing. + exit 1 + fi +done + for csource in $csource_LIST ; do uncrustify -c uncrustify.cfg -q -l c < $csource | cmp --quiet $csource - if [ "$?" -ne 0 ] ; then This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |