~angelsl/ubuntu/wily/gcc-5/mips-cross

« back to all changes in this revision

Viewing changes to debian/patches/libstdc++-man-3cxx.diff

  • Committer: angelsl
  • Date: 2015-10-30 03:30:35 UTC
  • Revision ID: angelsl-20151030033035-rmug41zm8hyjgisg
Original import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Install libstdc++ man pages with suffix .3cxx instead of .3
 
2
 
 
3
Index: b/src/libstdc++-v3/doc/doxygen/user.cfg.in
 
4
===================================================================
 
5
--- a/src/libstdc++-v3/doc/doxygen/user.cfg.in
 
6
+++ b/src/libstdc++-v3/doc/doxygen/user.cfg.in
 
7
@@ -1936,7 +1936,7 @@ MAN_OUTPUT             = man
 
8
 # The default value is: .3.
 
9
 # This tag requires that the tag GENERATE_MAN is set to YES.
 
10
 
 
11
-MAN_EXTENSION          = .3
 
12
+MAN_EXTENSION          = .3cxx
 
13
 
 
14
 # If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
 
15
 # will generate one additional man file for each entity documented in the real
 
16
Index: b/src/libstdc++-v3/scripts/run_doxygen
 
17
===================================================================
 
18
--- a/src/libstdc++-v3/scripts/run_doxygen
 
19
+++ b/src/libstdc++-v3/scripts/run_doxygen
 
20
@@ -243,6 +243,9 @@ fi
 
21
 if $do_man; then
 
22
 echo ::
 
23
 echo :: Fixing up the man pages...
 
24
+mkdir -p $outdir/man/man3
 
25
+mv $outdir/man/man3cxx/* $outdir/man/man3/
 
26
+rmdir $outdir/man/man3cxx
 
27
 cd $outdir/man/man3
 
28
 
 
29
 # File names with embedded spaces (EVIL!) need to be....?  renamed or removed?
 
30
@@ -264,7 +267,7 @@ rm -f *.h.3 *.hpp.3 *config* *.cc.3 *.tc
 
31
 # and I'm off getting coffee then anyhow, so I didn't care enough to make
 
32
 # this super-fast.
 
33
 g++ ${srcdir}/doc/doxygen/stdheader.cc -o ./stdheader
 
34
-problematic=`egrep -l '#include <.*_.*>' [a-z]*.3`
 
35
+problematic=`egrep -l '#include <.*_.*>' [a-z]*.3 [a-z]*.3cxx`
 
36
 for f in $problematic; do
 
37
     # this is also slow, but safe and easy to debug
 
38
     oldh=`sed -n '/fC#include </s/.*<\(.*\)>.*/\1/p' $f`
 
39
@@ -277,7 +280,7 @@ rm stdheader
 
40
 # Some of the pages for generated modules have text that confuses certain
 
41
 # implementations of man(1), e.g. on GNU/Linux.  We need to have another
 
42
 # top-level *roff tag to /stop/ the .SH NAME entry.
 
43
-problematic=`egrep --files-without-match '^\.SH SYNOPSIS' [A-Z]*.3`
 
44
+problematic=`egrep --files-without-match '^\.SH SYNOPSIS' [A-Z]*.3cxx`
 
45
 #problematic='Containers.3 Sequences.3 Assoc_containers.3 Iterator_types.3'
 
46
 
 
47
 for f in $problematic; do
 
48
@@ -291,7 +294,7 @@ a\
 
49
 done
 
50
 
 
51
 # Also, break this (generated) line up.  It's ugly as sin.
 
52
-problematic=`grep -l '[^^]Definition at line' *.3`
 
53
+problematic=`grep -l '[^^]Definition at line' *.3 *.3cxx`
 
54
 for f in $problematic; do
 
55
     sed 's/Definition at line/\
 
56
 .PP\
 
57
@@ -391,8 +394,8 @@ for f in ios streambuf istream ostream i
 
58
         istringstream ostringstream stringstream filebuf ifstream \
 
59
         ofstream fstream string;
 
60
 do
 
61
-    echo ".so man3/std::basic_${f}.3" > std::${f}.3
 
62
-    echo ".so man3/std::basic_${f}.3" > std::w${f}.3
 
63
+    echo ".so man3/std::basic_${f}.3cxx" > std::${f}.3cxx
 
64
+    echo ".so man3/std::basic_${f}.3cxx" > std::w${f}.3cxx
 
65
 done
 
66
 
 
67
 echo ::