Commit bbc13614 authored by Francois-Rene Rideau's avatar Francois-Rene Rideau

Update the manual's version without perl

Use the same mechanism as for other files.
parent 67d78d68
......@@ -12,21 +12,18 @@ intermediate = asdf.cps asdf.log asdf.vr asdf.aux asdf.fn asdf.toc asdf.vrs \
all: asdf.html asdf.info asdf.pdf manual-html
version.texinfo: ../version.lisp-expr
head -n 1 $^ | perl -ne 'm|\"(.*)\"|; print "\@set VERSION $$1\n"' > $@
manual-html: asdf.texinfo version.texinfo
manual-html: asdf.texinfo
makeinfo --html asdf.texinfo \
2>&1 > manual-html.log || { echo "failed. See log in manual-html.log" ; exit 1 ;}
asdf.html: asdf.texinfo version.texinfo
asdf.html: asdf.texinfo
makeinfo --html --no-split --no-headers -o asdf.html asdf.texinfo \
2>&1 > asdf.html.log || { echo "failed. See log in asdf.html.log" ; exit 1 ;}
asdf.info: asdf.texinfo version.texinfo
asdf.info: asdf.texinfo
makeinfo asdf.texinfo
asdf.pdf: asdf.texinfo version.texinfo
asdf.pdf: asdf.texinfo
texi2pdf asdf.texinfo \
2>&1 > asdf.pdf.log || { echo "failed. See log in asdf.pdf.log" ; exit 1 ;}
......
......@@ -63,11 +63,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@end copying
@include version.texinfo
@titlepage
@title ASDF: Another System Definition Facility
@subtitle Manual for Version @value{VERSION}
@subtitle Manual for Version @value{3.1.5}
@c The following two commands start the copyright page.
@page
@vskip 0pt plus 1filll
......@@ -84,7 +82,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@node Top, Introduction, (dir), (dir)
@top ASDF: Another System Definition Facility
@ifnottex
Manual for Version @value{VERSION}
Manual for Version @value{3.1.5}
@end ifnottex
......
......@@ -45,7 +45,9 @@
("uiop/version.lisp-expr" "\"" "\"")
("asdf.asd" " :version \"" "\" ;; to be automatically updated by make bump-version")
("header.lisp" "This is ASDF " ": Another System Definition Facility.")
("upgrade.lisp" " (asdf-version \"" "\")")))
("upgrade.lisp" " (asdf-version \"" "\")")
("doc/asdf.texinfo" "Manual for Version @value{" "}"))) ;; NB: two occurrences with this pattern.
(defparameter *old-version* :default)
(defparameter *new-version* :default)
......@@ -101,7 +103,7 @@
(constantly (strcat prefix new-version suffix))))
(lambda (text)
(multiple-value-bind (new-text foundp)
(cl-ppcre:regex-replace regex text replacement)
(cl-ppcre:regex-replace-all regex text replacement)
(unless (or foundp dont-warn)
(warn "Missing version in ~A" (file-namestring file)))
(values new-text foundp)))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment