##############################################################################
-# Copyright 2018-2022,2023 Thomas E. Dickey #
+# Copyright 2018-2023,2024 Thomas E. Dickey #
# Copyright 1998-2017,2018 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
# use or other dealings in this Software without prior written #
# authorization. #
##############################################################################
-# $Id: dist.mk,v 1.1569 2023/10/01 08:35:58 tom Exp $
+# $Id: dist.mk,v 1.1633 2024/09/22 18:38:38 tom Exp $
# Makefile for creating ncurses distributions.
#
# This only needs to be used directly as a makefile by developers, but
# These define the major/minor/patch versions of ncurses.
NCURSES_MAJOR = 6
-NCURSES_MINOR = 4
-NCURSES_PATCH = 20231001
+NCURSES_MINOR = 5
+NCURSES_PATCH = 20240922
# We don't append the patch to the version, since this only applies to releases
VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
# would remove some text. The man program on Redhat 6.1 appears to work with
# man2html if we set the top/bottom margins to 6 (the default is 7). Newer
# versions of 'man' leave no margin (and make it harder to sync with pages).
-MAN2HTML= man2html -botm=0 -topm=0 -cgiurl '$$title.$$section$$subsection.html' -index
+MAN2HTML= man2html -botm=0 -topm=0 -cgiurl '$$title.$$section$$subsection.html' -index -mixsecs
ALL = ANNOUNCE doc/html/announce.html doc/ncurses-intro.doc doc/hackguide.doc manhtml adahtml
@echo 's/<I>/<EM>/g' >> subst.tmp
@echo 's/<\/I>/<\/EM>/g' >> subst.tmp
@misc/csort < subst.tmp | uniq > subst.sed
- @echo '/<\/TITLE>/a\' >> subst.sed
- @echo '<link rel="author" href="mailto:bug-ncurses@gnu.org">\' >> subst.sed
+ @echo 's%[_-]*_-[_-]*%_%g' >> subst.sed
+ @echo '/<\/TITLE>/a\\' >> subst.sed
+ @echo '<link rel="author" href="mailto:bug-ncurses@gnu.org">\\' >> subst.sed
@rm -f subst.tmp
@for f in man/*.[0-9]* ; do \
m=`basename $$f` ;\
if [ -f doc/html/$$g ]; then chmod +w doc/html/$$g; fi;\
echo "Converting $$m to HTML" ;\
echo '<!--' > doc/html/man/$$g ;\
- $${EGREP-grep -E} '^.\\"[^#]' $$f | \
- sed -e 's/\$$/@/g' \
+ sed -e '/^\.[a-zA-Z]/,99999d' $$f | \
+ $${EGREP-grep -E} '^.\\"[^#]' | \
+ sed -e 's/\$$/@/g' \
-e 's/^.../ */' \
-e 's/</\</g' \
-e 's/>/\>/g' \