summaryrefslogtreecommitdiff
path: root/xsd/doc/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'xsd/doc/buildfile')
-rw-r--r--xsd/doc/buildfile40
1 files changed, 21 insertions, 19 deletions
diff --git a/xsd/doc/buildfile b/xsd/doc/buildfile
index 2b00ac6..271d17e 100644
--- a/xsd/doc/buildfile
+++ b/xsd/doc/buildfile
@@ -27,6 +27,12 @@ svg{*}: extension = svg
./: css{default} xsd{custom-literals} {png svg}{**}
+# Note: doc_version is also used in the man pages and the manual.
+#
+doc_version = [string] "$version.major.$version.minor.$version.patch"
+if $version.pre_release
+ doc_version += "-$version.pre_release_string"
+
# Man pages.
#
@@ -51,10 +57,6 @@ pregenerated/{man1 xhtml}{*}: dist = (!$develop)
if $develop
{
- doc_version = [string] "$version.major.$version.minor.$version.patch"
- if $version.pre_release
- doc_version += "-$version.pre_release_string"
-
# Let's take the last four-digit number to cover 2000-2021,2022.
#
doc_year = $regex.replace($copyright, '.+[-, ]([0-9][0-9][0-9][0-9]) .+', '\1')
@@ -77,7 +79,7 @@ if $develop
#
{man1 xhtml}{xsd}: dist = ($develop ? pregenerated/ : false)
-ops = ../xsd/cxx/cli{options tree/options parser/options}
+ops = ../xsd/cli{options cxx/options cxx/tree/options cxx/parser/options}
man1{xsd}: $ops \
file{xsd-prologue.1 \
@@ -96,20 +98,20 @@ if $develop
-v date="January $doc_year" \
--class CXX::options \
--class options \
- --man-prologue-file $path($<[3]) \
- $path($<[0]) >$o
-
- $cli --generate-man $man_options \
- -v date="January $doc_year" \
--man-prologue-file $path($<[4]) \
- $path($<[1]) >>$o
+ $path($<[1]) >$o
$cli --generate-man $man_options \
-v date="January $doc_year" \
--man-prologue-file $path($<[5]) \
- --man-epilogue-file $path($<[6]) \
$path($<[2]) >>$o
+ $cli --generate-man $man_options \
+ -v date="January $doc_year" \
+ --man-prologue-file $path($<[6]) \
+ --man-epilogue-file $path($<[7]) \
+ $path($<[3]) >>$o
+
# If the result differs from the pregenerated version, copy it over.
#
if! diff $src_base/pregenerated/xsd.1 $o >-
@@ -132,20 +134,20 @@ if $develop
-v date="January $doc_year" \
--class CXX::options \
--class options \
- --html-prologue-file $path($<[3]) \
- $path($<[0]) >$o
-
- $cli --generate-html $man_options \
- -v date="January $doc_year" \
--html-prologue-file $path($<[4]) \
- $path($<[1]) >>$o
+ $path($<[1]) >$o
$cli --generate-html $man_options \
-v date="January $doc_year" \
--html-prologue-file $path($<[5]) \
- --html-epilogue-file $path($<[6]) \
$path($<[2]) >>$o
+ $cli --generate-html $man_options \
+ -v date="January $doc_year" \
+ --html-prologue-file $path($<[6]) \
+ --html-epilogue-file $path($<[7]) \
+ $path($<[3]) >>$o
+
if! diff $src_base/pregenerated/xsd.xhtml $o >-
cp $o $src_base/pregenerated/xsd.xhtml
end