Changeset 38034 for trunk/doc-new


Ignore:
Timestamp:
Jul 4, 2008, 12:37:00 AM (11 years ago)
Author:
raimue@…
Message:

doc-new:
Use macports.xsl.in as a template for macports.xsl
Now the PREFIX has only to be changed in the Makefile if your MacPorts
installation is not at /opt/local

Location:
trunk/doc-new
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/Makefile

    r35199 r38034  
    55# installed.
    66
    7 # If your macports isn't installed in /opt/local you have to change PREFIX
    8 # here and update man/resources/macports.xsl to use your port installation!
    9 
     7# If your macports isn't installed in /opt/local you have to change PREFIX here
    108
    119# prefix of the macports installation:
     
    6967# modified (section -> refsection) so they can be used as man xml source files
    7068# and then xincluded in the real man xml files in $(MAN-SRC).
    71 man:
     69man: $(MAN-XSL)
    7270        $(MKDIR) -p $(MAN-RESULT)
    7371        $(MKDIR) -p $(MAN-TMP)
     
    8381        $(RM) -r $(MAN-TMP)
    8482
     83# create XSL from template for man pages
     84$(MAN-XSL):
     85        $(SED) 's:@PREFIX@:$(PREFIX):' $@.in > $@
     86
    8587# Remove all temporary files generated by guide: and man:.
    8688clean:
     
    8890        $(RM) -rf $(MAN-RESULT)
    8991        $(RM) -rf $(MAN-TMP)
     92        $(RM) -rf $(MAN-XSL)
    9093        $(RM) -f  guide.tmp.xml
    9194
  • trunk/doc-new/man/resources

    • Property svn:ignore set to
      macports.xsl
  • trunk/doc-new/man/resources/macports.xsl.in

    r38026 r38034  
    44
    55<!-- load the man page xsl file so it can be modified: -->
    6 <!-- if your macports prefix differs you have to change this path -->
    7 <xsl:import href="/opt/local/share/xsl/docbook-xsl/manpages/docbook.xsl"/>
     6<!-- @PREFIX@ is replaced by the prefix of your MacPorts installation -->
     7<xsl:import href="@PREFIX@/share/xsl/docbook-xsl/manpages/docbook.xsl"/>
    88
    99<!-- modify the default term template so terms are bold: -->
Note: See TracChangeset for help on using the changeset viewer.