File: adapt_headers.sh

package info (click to toggle)
gccxml 0.9.0%2Bcvs20080525-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 78,840 kB
  • ctags: 72,674
  • sloc: ansic: 749,255; cpp: 33,564; asm: 26,833; sh: 5,161; makefile: 4,695; lex: 589; awk: 566; perl: 334; yacc: 271; pascal: 86; python: 18
file content (24 lines) | stat: -rwxr-xr-x 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

INCLUDES=/usr/include
CC_INCLUDES=`find_flags | perl -ne '($a) = m|-I([/a-zA-Z0-9_-]+/include/CC)|o ; print "$a\n" if $a'`

cd 5.8

cp $INCLUDES/math.h .
cp $CC_INCLUDES/typeinfo .
cp $CC_INCLUDES/Cstd/istream .
cp $CC_INCLUDES/Cstd/streambuf .
cp $CC_INCLUDES/Cstd/string .

mkdir -p rw
mkdir -p sys
mkdir -p iso

cp $CC_INCLUDES/Cstd/rw/iterator rw/iterator
cp $INCLUDES/iso/stdio_iso.h iso
cp $INCLUDES/iso/stdlib_iso.h iso

cp $INCLUDES/sys/regset.h sys

patch -p1 < adaptation.patch