public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] manual: scripts/documented.sh updated
@ 2023-02-24 14:34 Girish Joshi
  2023-02-27 17:56 ` Florian Weimer
  0 siblings, 1 reply; 14+ messages in thread
From: Girish Joshi @ 2023-02-24 14:34 UTC (permalink / raw)
  To: Girish Joshi via Libc-alpha

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

Hello,
As per the Missing Functions section of master Todo list[1],
scripts/documented.sh needs to be updated.

Could someone please review this patch?
It removes the reference to linuxthreads/*.taxi files from the script
and removes the individual email address from the output.

Thanks!
Girish Joshi
girishjoshi.io

[1]: https://sourceware.org/glibc/wiki/Development_Todo/Master

[-- Attachment #2: 0001-manual-scripts-documented.sh-updated.patch --]
[-- Type: text/x-patch, Size: 2160 bytes --]

From 8f589f12be85655d5bb5f69b07753ca7aa87bc16 Mon Sep 17 00:00:00 2001
From: Girish Joshi <girish946@gmail.com>
Date: Fri, 24 Feb 2023 19:50:38 +0530
Subject: [PATCH] manual: scripts/documented.sh updated

As mentioned in the master todo list,
References for linuxthreads are removed from scripts/documented.sh.
Also removed the individual email address from the html output.
---
 scripts/documented.sh | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/scripts/documented.sh b/scripts/documented.sh
index 7d1ffd4a92..7d9a044295 100644
--- a/scripts/documented.sh
+++ b/scripts/documented.sh
@@ -1,9 +1,17 @@
 #!/bin/sh
+
+# usage: scripts/documented.sh <path to glibc build directory>
+# for example:
+# scripts/documented.sh $HOME/build/glibc
+
+
 bindir=$1
 
 VERSION=1.0
 
-grep -E -h @deftypefu?nx? *.texi ../linuxthreads/*.texi |
+# Collect the documented functions from manual/*.texi files.
+
+grep -E -h @deftypefu?nx? manual/*.texi |
 sed -e 's/@deftypefunx*[[:space:]]*\({[^{]*}\|[[:alnum:]_]*\)[[:space:]]*\([[:alnum:]_]*\).*/\2/' -e 's/@deftypefn {[^}]*function}*[[:space:]]*\({[^{]*}\|[[:alnum:]_]*\)[[:space:]]*\([[:alnum:]_]*\).*/\2/' -e '/^@/d' |
 sed -e '/^obstack_/d' -e '/^\([lf]\|\)stat\(\|64\)$/d' -e '/^mknod$/d' |
 sed -e '/^signbit$/d' -e '/^sigsetjmp$/d' |
@@ -14,7 +22,9 @@ sed -e '/^__fpending$/d' -e '/^__flbf$/d' -e '/^__fbufsize$/d' |
 sed -e '/^alloca$/d' |
 sort -u > DOCUMENTED
 
-nm --extern --define $bindir/libc.so $bindir/math/libm.so $bindir/rt/librt.so $bindir/linuxthreads/libpthread.so $bindir/dlfcn/libdl.so $bindir/crypt/libcrypt.so $bindir/login/libutil.so |
+# Generate the HTML doc
+
+nm --extern --define $bindir/libc.so $bindir/math/libm.so $bindir/rt/librt.so $bindir/nptl/libpthread.so $bindir/dlfcn/libdl.so $bindir/crypt/libcrypt.so $bindir/login/libutil.so |
 grep -E " [TW] ([[:alpha:]]|_[[:alpha:]])" |
 sed 's/\(@.*\)//' |
 cut -b 12- |
@@ -95,7 +105,6 @@ cat <<EOF
     </table></center>
 
     <hr>
-    <address><a href="mailto:drepper@redhat.com">Ulrich Drepper</a></address>
 Generated on $(date) with documented.sh version $VERSION
   </body>
 </html>
-- 
2.39.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-04-11 17:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24 14:34 [PATCH] manual: scripts/documented.sh updated Girish Joshi
2023-02-27 17:56 ` Florian Weimer
2023-03-05  6:14   ` Girish Joshi
2023-03-05  6:55     ` Girish Joshi
2023-03-11 14:48     ` Joe Simmons-Talbott
2024-03-30 18:54       ` Girish Joshi
2024-04-01 16:33         ` Joe Talbott
2024-04-02  4:01           ` Girish Joshi
2024-04-03 15:44             ` Girish Joshi
2024-04-03 17:10               ` Adhemerval Zanella Netto
2024-04-04 13:58                 ` Girish Joshi
2024-04-07  8:13                   ` Girish Joshi
2024-04-10 18:35                 ` Girish Joshi
2024-04-11 17:18           ` Adhemerval Zanella Netto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).