]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - dist.mk
ncurses 5.9 - patch 20150530
[ncurses.git] / dist.mk
diff --git a/dist.mk b/dist.mk
index 52c613d26438d43039b33c3f43efb51aeb6446bd..1a0a7b93f9668281393fed3df67b0b961a6f61ea 100644 (file)
--- a/dist.mk
+++ b/dist.mk
@@ -1,5 +1,5 @@
 ##############################################################################
-# Copyright (c) 1998-2012,2013 Free Software Foundation, Inc.                #
+# Copyright (c) 1998-2014,2015 Free Software Foundation, Inc.                #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
 # copy of this software and associated documentation files (the "Software"), #
@@ -25,7 +25,7 @@
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
-# $Id: dist.mk,v 1.948 2013/10/12 16:11:35 tom Exp $
+# $Id: dist.mk,v 1.1053 2015/05/26 00:31:25 tom Exp $
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
@@ -37,7 +37,7 @@ SHELL = /bin/sh
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 5
 NCURSES_MINOR = 9
-NCURSES_PATCH = 20131012
+NCURSES_PATCH = 20150530
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
@@ -53,13 +53,13 @@ DUMP2       = $(DUMP) -nolist
 # gcc's file is "gnathtml.pl"
 GNATHTML= gnathtml
 
-# man2html 3.0.1 is a Perl script which assumes that pages are fixed size.
+# man2html is a Perl script which assumes that pages are fixed size.
 # Not all man programs agree with this assumption; some use half-spacing, which
 # has the effect of lengthening the text portion of the page -- so man2html
 # 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'
+MAN2HTML= man2html -botm=0 -topm=0 -cgiurl '$$title.$$section$$subsection.html' -index
 
 ALL    = ANNOUNCE doc/html/announce.html doc/ncurses-intro.doc doc/hackguide.doc manhtml adahtml
 
@@ -99,7 +99,13 @@ doc/hackguide.doc: doc/html/hackguide.html
 MANPROG        = tbl | nroff -mandoc -rLL=65n -rLT=71n -Tascii
 
 manhtml:
-       @rm -f doc/html/man/*.html
+       @for f in doc/html/man/*.html; do \
+          test -f $$f || continue; \
+          case $$f in \
+          */index.html) ;; \
+          *) rm -f $$f ;; \
+          esac; \
+       done
        @mkdir -p doc/html/man
        @rm -f subst.tmp ;
        @for f in man/*.[0-9]*; do \
@@ -127,8 +133,7 @@ manhtml:
           g=$${m}.html ;\
           if [ -f doc/html/$$g ]; then chmod +w doc/html/$$g; fi;\
           echo "Converting $$m to HTML" ;\
-          echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">' > doc/html/man/$$g ;\
-          echo '<!-- ' >> doc/html/man/$$g ;\
+          echo '<!-- ' > doc/html/man/$$g ;\
           egrep '^.\\"[^#]' $$f | \
                sed     -e 's/\$$/@/g' \
                        -e 's/^.../  */' \
@@ -136,9 +141,15 @@ manhtml:
                        -e 's/>/\&gt;/g' \
           >> doc/html/man/$$g ;\
           echo '-->' >> doc/html/man/$$g ;\
-          ./edit_man.sh normal editing /usr/man man $$f | $(MANPROG) | tr '\255' '-' | $(MAN2HTML) -title "$$T" | \
-          sed -f subst.sed |\
-          sed -e 's/"curses.3x.html"/"ncurses.3x.html"/g' \
+          ./edit_man.sh normal editing /usr/man man $$f | \
+                  $(MANPROG) | \
+                  tr '\255' '-' | \
+                  $(MAN2HTML) \
+                       -title "$$T" \
+                       -aliases man/manhtml.aliases \
+                       -externs man/manhtml.externs | \
+                  sed -f subst.sed |\
+                  sed -e 's/"curses.3x.html"/"ncurses.3x.html"/g' \
           >> doc/html/man/$$g ;\
        done
        @rm -f subst.sed