warzone2100/fixcppbuild

16 lines
315 B
Bash
Executable File

#!/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