public
Description: Git mirror of the MacPorts svn repo
Homepage: http://www.macports.org
Clone URL: git://github.com/kballard/macports.git
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


git-svn-id: http://svn.macports.org/repository/macports/trunk@38034 
d073be05-634f-4543-b044-5fe20cf6d1d6
Rainer Müller (author)
Thu Jul 03 17:37:00 -0700 2008
commit  0e4084ae26dd898c342f3511df6e4dadbc7555e5
tree    a118c98bb14485659ec4d847400c9748343f598f
parent  402df2ef411af2a39165c60eb28872e1727e47c6
...
4
5
6
7
8
9
 
10
11
12
...
68
69
70
71
 
72
73
74
...
82
83
84
 
 
 
 
85
86
87
88
89
 
90
91
92
...
4
5
6
 
 
 
7
8
9
10
...
66
67
68
 
69
70
71
72
...
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
0
@@ -4,9 +4,7 @@
0
 # The ports 'docbook-xsl', 'docbook-xml' and 'libxslt' have to be
0
 # installed.
0
 
0
-# If your macports isn't installed in /opt/local you have to change PREFIX
0
-# here and update man/resources/macports.xsl to use your port installation!
0
-
0
+# If your macports isn't installed in /opt/local you have to change PREFIX here
0
 
0
 # prefix of the macports installation:
0
 PREFIX = /opt/local
0
@@ -68,7 +66,7 @@ guide:
0
 # The portfile-*.xml files in $(GUIDE-SRC) are copied to $(MAN-TMP) and
0
 # modified (section -> refsection) so they can be used as man xml source files
0
 # and then xincluded in the real man xml files in $(MAN-SRC).
0
-man:
0
+man: $(MAN-XSL)
0
   $(MKDIR) -p $(MAN-RESULT)
0
   $(MKDIR) -p $(MAN-TMP)
0
   $(CP) $(GUIDE-SRC)/portfile-*.xml $(MAN-TMP)
0
@@ -82,11 +80,16 @@ man:
0
    $(MAN-SRC)/porthier.7.xml
0
   $(RM) -r $(MAN-TMP)
0
 
0
+# create XSL from template for man pages
0
+$(MAN-XSL):
0
+ $(SED) 's:@PREFIX@:$(PREFIX):' $@.in > $@
0
+
0
 # Remove all temporary files generated by guide: and man:.
0
 clean:
0
   $(RM) -rf $(GUIDE-RESULT)
0
   $(RM) -rf $(MAN-RESULT)
0
   $(RM) -rf $(MAN-TMP)
0
+ $(RM) -rf $(MAN-XSL)
0
   $(RM) -f guide.tmp.xml
0
 
0
 # Validate the xml files for the guide.

Comments

    No one has commented yet.