From: <dai...@us...> - 2011-12-14 05:37:34
|
Revision: 4773 http://web-erp.svn.sourceforge.net/web-erp/?rev=4773&view=rev Author: daintree Date: 2011-12-14 05:37:28 +0000 (Wed, 14 Dec 2011) Log Message: ----------- Added Paths: ----------- trunk/build/check_syntax.sh Added: trunk/build/check_syntax.sh =================================================================== --- trunk/build/check_syntax.sh (rev 0) +++ trunk/build/check_syntax.sh 2011-12-14 05:37:28 UTC (rev 4773) @@ -0,0 +1,17 @@ +#!/bin/bash + +ROOT_DIR=$PWD +cd $ROOT_DIR/.. +for f in `find . -name "*.php" -o -name "*.inc"` +do + newname=`echo $f | cut -c3-` + filename="$ROOT_DIR/../$newname" + echo $filename + output=$((php5 -l $filename ) 2>&1) + + if [ $? != 0 ] + then + echo '**Error** '$output >> ~/weberp$(date +%Y%m%d).log + echo '' >> ~/weberp$(date +%Y%m%d).log + fi +done Property changes on: trunk/build/check_syntax.sh ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |