Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[r13118]: branches / phil_tmp / scripts / reorganise-compilecheck Maximize Restore History

Download this file

reorganise-compilecheck    17 lines (16 with data), 637 Bytes

#!/bin/bash
files="$@"
tried=0
succeeded=0
if [ -z "$files" ]; then files=`find . -name \*.cpp -print`; fi
time for x in $files ; do 
    	tried=$(($tried+1))
	o=`dirname $x`/`basename $x .cpp`.o
	if [ -f "$o" ] || /usr/bin/c++ -c -Wall -O0 -g -DHAVE_XFT -DQT_THREAD_SUPPORT -D'VERSION="1.5.0-reorg"' -I/usr/include -I/usr/local/include -I/usr/include/qt3 -I/usr/include/kde -I/usr/include/freetype2 -Ibase -I. $x -o "$o" > /tmp/out_$$ 2>&1 ; then
		succeeded=$(($succeeded+1))
		echo "YES!! ($succeeded of $tried) $x"
	else
		echo "NO... ($succeeded of $tried) $x"
		cat /tmp/out_$$ | grep 'error:' | head -1 | sed 's/^/  > /'
	fi
done