soundmodem/directx/fixdirectx.sh

18 lines
449 B
Bash
Raw Permalink Normal View History

2018-06-17 14:19:22 +02:00
#!/bin/sh
#
# A script to fix the DirectX includes so that gcc can compile them...
#cd `dirname $0`
for file in include/directx6/*.h
do echo "Stripping $file..."
tr -d '\r' <$file >$file.new && mv $file.new $file
done
# Fix the few remaining headers that have anonymous unions
for file in include/directx6/d3dtypes.h
do if [ -f $file ]; then
echo "Fixing $file..."
perl ./deunion.pl <$file >$file.new && mv $file.new $file
fi
done