Source

warzone2100 / fixcppbuild

Full commit
#!/bin/bash
for a in {src,lib/*{,/*}}/*.cpp
do
	b="${a%pp}"
	c="${a##*/}"
	d="${b##*/}"
	if [ "$d" != '*.c' ]
	then
		#echo Checking "$a"
		sed -i "s/\\b${b//\//\\\\}\\b/${a//\//\\\\}/" win32/*.vcproj
		sed -i "s/\\b$d\\b/$c/" {src,lib/*{,/*}}/{Makefile.am,makefile.win32} lib/*/*.vcproj
	else
		echo Skipping "$a".
	fi
done