File: adapt_headers.sh

package info (click to toggle)
gccxml 0.9.0%2Bcvs20100501-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 79,132 kB
  • ctags: 73,371
  • sloc: ansic: 751,436; cpp: 34,175; asm: 26,833; sh: 5,077; makefile: 4,696; lex: 589; awk: 566; perl: 334; yacc: 271; pascal: 86; python: 29
file content (32 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

cd `dirname $0`

#########################################
# Patch STL Headers (Non-STLport)
#########################################

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

mkdir -p rw

cp $CC_INCLUDES/typeinfo .
cp $CC_INCLUDES/Cstd/istream .
cp $CC_INCLUDES/Cstd/ostream .
cp $CC_INCLUDES/Cstd/streambuf .
cp $CC_INCLUDES/Cstd/string .
cp $CC_INCLUDES/Cstd/algorithm .
cp $CC_INCLUDES/Cstd/rw/iterator rw/iterator

gpatch -p1 < Cstd.patch

#########################################
# Patch the standard headers
#########################################

if [ `uname -r` = "5.10" ]
then
  mkdir -p iso
  cp /usr/include/iso/stdlib_iso.h iso
  gpatch -p1 < std-5.10.patch
fi