Changeset 140263 for trunk/doc-new


Ignore:
Timestamp:
Sep 15, 2015, 4:58:39 PM (3 years ago)
Author:
raimue@…
Message:

doc-new: Remove outdated man page directory

Update Makefile, move referenced prefix hierarchy to guide.

Location:
trunk/doc-new
Files:
1 deleted
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/Makefile

    r120885 r140263  
    11# $Id$
    22
    3 # Makefile to generate the MacPorts HTML guide and the man pages.
     3# Makefile to generate the MacPorts HTML guide pages.
    44# The ports 'docbook-xsl', 'docbook-xml' and 'libxslt' have to be installed.
    55# For the guide-dblatex target, the 'dblatex' port is also required.
     
    3232# Data directories.
    3333GUIDE = guide
    34 MAN   = man
    3534# Source directories.
    3635GUIDE_SRC = $(GUIDE)/xml
    37 MAN_SRC   = $(MAN)/xml
    3836# Result directories.
    3937GUIDE_RESULT         = $(GUIDE)/html
    4038GUIDE_RESULT_CHUNK   = $(GUIDE_RESULT)/chunked
    4139GUIDE_RESULT_DBLATEX = $(GUIDE)/dblatex
    42 MAN_RESULT           = $(MAN)/man/
    43 # Man temporary directory.
    44 MAN_TMP = $(MAN)/tmp
    4540
    4641# Path to the DocBook XSL files.
     
    5146GUIDE_XSL       = $(GUIDE)/resources/single-page.xsl
    5247GUIDE_XSL_CHUNK = $(GUIDE)/resources/chunk.xsl
    53 MAN_XSL         = $(MAN)/resources/macports.xsl
    5448
    5549# DocBook HTML stylesheet for the guide.
    5650STYLESHEET = docbook.css
    5751
    58 .PHONY: all guide guide-chunked guide-dblatex man clean validate
     52.PHONY: all guide guide-chunked guide-dblatex clean validate
    5953
    60 all: guide guide-chunked man
     54all: guide guide-chunked
    6155
    6256# Generate the HTML guide using DocBook from the XML sources in $(GUIDE_SRC).
     
    126120        $(GUIDE_SRC)/guide.xml
    127121
    128 # Generate the man pages using DocBook from the XML source in $(MAN_SRC).
    129 # The portfile-*.xml and portgroup-*.xml files in $(GUIDE_SRC) are copied to
    130 # $(MAN_TMP) and modified (section -> refsection) so they can be used as man
    131 # XML source files and then xincluded in the real man XML files in $(MAN_SRC).
    132 man: $(MAN_XSL)
    133         $(MKDIR) -p $(MAN_RESULT)
    134         $(MKDIR) -p $(MAN_TMP)
    135         $(CP) $(GUIDE_SRC)/portfile-*.xml $(MAN_TMP)
    136         $(CP) $(GUIDE_SRC)/portgroup-*.xml $(MAN_TMP)
    137 ifeq ($(UNAME), Linux)
    138         $(SED) -i -r -e 's|<section|<refsection|g' $(MAN_TMP)/*
    139         $(SED) -i -r -e 's|</section>|</refsection>|g' $(MAN_TMP)/*
    140 else
    141         $(SED) -i "" 's|<section|<refsection|g' $(MAN_TMP)/*
    142         $(SED) -i "" 's|</section>|</refsection>|g' $(MAN_TMP)/*
    143 endif
    144         $(XSLTPROC) --xinclude --output $(MAN_RESULT) $(MAN_XSL) \
    145             $(MAN_SRC)/port.1.xml \
    146             $(MAN_SRC)/portfile.7.xml \
    147             $(MAN_SRC)/portgroup.7.xml \
    148             $(MAN_SRC)/porthier.7.xml
    149         $(RM) -r $(MAN_TMP)
    150 
    151 # Create XSL from template for man pages.
    152 $(MAN_XSL):
    153 ifeq ($(UNAME), Linux)
    154         $(SED) -r -e 's:@PREFIX@:$(PREFIX):' $@.in > $@
    155 else
    156         $(SED) 's:@PREFIX@:$(PREFIX):' $@.in > $@
    157 endif
    158 
    159 # Remove all temporary files generated by guide: and man:.
     122# Remove all temporary files generated by guide:.
    160123clean:
    161124        $(RM) -rf $(GUIDE)/resources/xsl
    162125        $(RM) -rf $(GUIDE_RESULT)
    163126        $(RM) -rf $(GUIDE_RESULT_DBLATEX)
    164         $(RM) -rf $(MAN_RESULT)
    165         $(RM) -rf $(MAN_TMP)
    166         $(RM) -rf $(MAN_XSL)
    167127        $(RM) -f  guide.tmp.xml
    168128
  • trunk/doc-new/guide/xml/internals.xml

    r134587 r140263  
    1212    <title>File Hierarchy</title>
    1313
    14     <xi:include href="../../man/xml/porthier.7.xml"
     14    <xi:include href="internals-hier.xml"
    1515                xmlns:xi="http://www.w3.org/2001/XInclude" />
    1616  </section>
Note: See TracChangeset for help on using the changeset viewer.