File: fixdirectx.sh

package info (click to toggle)
baycomusb 0.10-12.1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 6,928 kB
  • ctags: 9,413
  • sloc: ansic: 49,182; asm: 17,572; sh: 3,637; makefile: 585; pascal: 183; sed: 93; perl: 31
file content (17 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download | duplicates (31)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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