diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/libstdc++-doclink.dpatch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.1/debian/libstdc++-doclink.dpatch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/libstdc++-doclink.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/libstdc++-doclink.dpatch new file mode 100644 index 0000000000..9393296712 --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.1/debian/libstdc++-doclink.dpatch | |||
@@ -0,0 +1,51 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | # DP: adjust hrefs to point to the local documentation | ||
4 | |||
5 | dir= | ||
6 | if [ $# -eq 3 -a "$2" = '-d' ]; then | ||
7 | pdir="-d $3" | ||
8 | dir="$3/" | ||
9 | elif [ $# -ne 1 ]; then | ||
10 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
11 | exit 1 | ||
12 | fi | ||
13 | case "$1" in | ||
14 | -patch) | ||
15 | patch $pdir -f --no-backup-if-mismatch -p0 < $0 | ||
16 | ;; | ||
17 | -unpatch) | ||
18 | patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 | ||
19 | ;; | ||
20 | *) | ||
21 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
22 | exit 1 | ||
23 | esac | ||
24 | exit 0 | ||
25 | |||
26 | --- libstdc++-v3/doc/doxygen/mainpage.html~ 2008-02-19 21:08:07.375796572 +0100 | ||
27 | +++ libstdc++-v3/doc/doxygen/mainpage.html 2008-02-19 21:14:20.841430216 +0100 | ||
28 | @@ -30,8 +30,8 @@ | ||
29 | <p>There are two types of documentation for libstdc++. One is the | ||
30 | distribution documentation, which can be read online | ||
31 | <a href="http://gcc.gnu.org/onlinedocs/libstdc++/index.html">here</a> | ||
32 | - or offline from the file doc/html/index.html in the library source | ||
33 | - directory. | ||
34 | + or offline in the documentation directory | ||
35 | + <a href="documentation.html">here</a>. | ||
36 | </p> | ||
37 | |||
38 | <p>The other type is the source documentation, of which this is the first page. | ||
39 | @@ -71,9 +71,9 @@ | ||
40 | This style guide can also be viewed on the <a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01apas04.html">web</a>. | ||
41 | |||
42 | <h2>License, Copyright, and Other Lawyerly Verbosity</h2> | ||
43 | -<p>The libstdc++ documentation is released under | ||
44 | - <a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt01ch01s02.html"> | ||
45 | - these terms</a>. | ||
46 | +<p>The libstdc++ documentation is released under these terms | ||
47 | + (<a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt01ch01s02.html">read online</a>, or | ||
48 | + <a href="17_intro/license.html">read offline</a>). | ||
49 | </p> | ||
50 | <p>Part of the generated documentation involved comments and notes from | ||
51 | SGI, who says we gotta say this: | ||