From 8d80e3c5a641556e32fdf3637f08a0648f5aaab3 Mon Sep 17 00:00:00 2001
From: Jonathan Wakely <jwakely@redhat.com>
Date: Thu, 25 Apr 2024 14:02:36 +0100
Subject: [PATCH] libstdc++: Rename man pages to use '::' instead of '_'

The Doxygen-generated man pages for some new types need to be renamed to
use '::' instead of '_' in the filenames.

libstdc++-v3/ChangeLog:

	* scripts/run_doxygen: Rename man pages for nested types.
---
 libstdc++-v3/scripts/run_doxygen | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/libstdc++-v3/scripts/run_doxygen b/libstdc++-v3/scripts/run_doxygen
index ea9bcb565530..11f24b058aff 100644
--- a/libstdc++-v3/scripts/run_doxygen
+++ b/libstdc++-v3/scripts/run_doxygen
@@ -415,8 +415,21 @@ for f in __cxxabiv1_*; do
     mv $f $newname
 done
 
+mv std::__unspecified___exception_ptr.3 std::exception_ptr.3
+
 # Then piecemeal nested classes
 
+for f in std*distribution_param_type.3; do
+    newname=`echo $f | sed 's/distribution_param_type/distribution::param_type/'`
+    mv $f $newname
+done
+
+for f in std*filesystem::path_iterator.3; do
+    newname=`echo $f | sed 's/path_iterator/path::iterator/'`
+    mv $f $newname
+done
+
+mv std::chrono::tzdb_list_const_iterator.3 std::chrono::tzdb_list::const_iterator.3
 
 # Generic removal bits, where there are things in the generated man
 # pages that need to be killed.
-- 
GitLab