mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
3499233817
1999-01-07 Ulrich Drepper <drepper@cygnus.com> * sysdeps/i386/bits/select.h (__FD_ZERO): Remove early clobbers from c and D register output. 1999-01-07 Philip Blundell <philb@gnu.org> * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Fix bug in last change. 1999-01-07 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/alpha/bits/types.h: Correct type for __fsfilcnt_t. Patch by Bruce Elliott <bde@nwlink.com>. 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * manual/conf.texi: Remove pointers from first @node. Move old @node spec inside comment. * manual/lang.texi: Likewise. * manual/libc-texinfo.sh: Also find `@node.*Top' in a comment. * manual/stdio.texi: Fix typo. 1999-01-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * wcsmbs/btowc.c: Accept all values in the range [SCHAR_MIN .. UCHAR_MAX]. Local var buf renamed to result and its type changed from char[] to wchar_t to get proper alignment. * posix/fnmatch.c: Also cast the arguments of the other ctype functions to unsigned char. 1999-01-07 Ulrich Drepper <drepper@cygnus.com> * Rules: Add rules for empty.{o,os,op} back.
89 lines
2.1 KiB
Bash
89 lines
2.1 KiB
Bash
#! /bin/sh
|
|
|
|
# Create libc.texinfo from the chapter files.
|
|
|
|
trap "rm -f *.$$; exit 1" 1 2 15
|
|
|
|
exec 3>incl.$$ 4>smenu.$$ 5>lmenu.$$
|
|
|
|
build_menu () {
|
|
while IFS=: read file node; do
|
|
echo "@include $file" >&3
|
|
echo "* $node:: `sed -n 's/^@c %MENU% //p' $file`" >&4
|
|
$AWK 'BEGIN { do_menu = 0 }
|
|
/^@node / { sub(/^@node /, ""); sub(/,.*$/, ""); node = $0 }
|
|
/^@menu/ { printf "\n%s\n\n", node; do_menu = 1; next }
|
|
/^@end menu/ { do_menu = 0 }
|
|
do_menu { print }' $file >&5
|
|
done
|
|
}
|
|
|
|
collect_nodes () {
|
|
egrep '^(@c )?@node.*Top' "$@" /dev/null | cut -d, -f-2 |
|
|
sed 's/@c //; s/, /:/; s/:@node /:/; s/ /_/g; s/:/ /g' |
|
|
$AWK '{ file[$2] = $1; nnode[$2] = $3 }
|
|
END { for (x in file)
|
|
if (file[x] != "")
|
|
print file[x] ":" x, file[nnode[x]] ":" nnode[x] }' |
|
|
tsort | sed 's/_/ /g; $d'
|
|
}
|
|
|
|
collect_nodes $1 | build_menu
|
|
|
|
if [ -n "$2" ]; then
|
|
|
|
{ echo; echo 'Add-ons'; echo; } >&4
|
|
|
|
egrep '^(@c )?@node.*Top' `echo $2 /dev/null | tr ' ' '\n' | sort` |
|
|
cut -d, -f1 | sed 's/@c //;s/@node //' | build_menu
|
|
|
|
fi
|
|
|
|
{ echo; echo 'Appendices'; echo; } >&4
|
|
|
|
collect_nodes $3 | build_menu
|
|
|
|
exec 3>&- 4>&- 5>&-
|
|
|
|
mv -f incl.$$ chapters.texi
|
|
|
|
{
|
|
echo '@menu'
|
|
$AWK -F: '
|
|
/^\*/ {
|
|
printf("%-32s", $1 "::");
|
|
x = split($3, word, " ");
|
|
hpos = 34;
|
|
for (i = 1; i <= x; i++) {
|
|
hpos += length(word[i]) + 1;
|
|
if (hpos > 78) {
|
|
printf("\n%34s", "");
|
|
hpos = 35 + length(word[i]);
|
|
}
|
|
printf(" %s", word[i]);
|
|
}
|
|
print ".";
|
|
}
|
|
|
|
!/^\*/ { print; }
|
|
' smenu.$$
|
|
cat <<EOF
|
|
* Copying:: The GNU Library General Public License says
|
|
how you can copy and share the GNU C Library.
|
|
|
|
Indices
|
|
|
|
* Concept Index:: Index of concepts and names.
|
|
* Type Index:: Index of types and type qualifiers.
|
|
* Function Index:: Index of functions and function-like macros.
|
|
* Variable Index:: Index of variables and variable-like macros.
|
|
* File Index:: Index of programs and files.
|
|
|
|
--- The Detailed Node Listing ---
|
|
EOF
|
|
cat lmenu.$$
|
|
echo '@end menu'; } >top-menu.texi.$$
|
|
mv -f top-menu.texi.$$ top-menu.texi
|
|
|
|
rm -f *.$$
|