Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Update copyright year and show build's git revision on the copyright page. #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ mkdir target
# Build the Single Page HTML
if array_contains "html" "${formats[@]}"; then
echo "Building Single Page HTML"
$asciidoc_exe $vflag -o target/$book.html $book_file
$asciidoc_exe $vflag -o target/$book.html -a gitrevision=`git describe --dirty` $book_file
fi

dblatex_opts_common="$dblatex_vflag -P doc.publisher.show=0 -P latex.output.revhistory=0"
Expand All @@ -76,7 +76,7 @@ if array_contains "pdf" "${formats[@]}"; then
echo "Building PDF"
cp -r figs target
cp -r images target
$asciidoc_exe $vflag -d book -b docbook \
$asciidoc_exe $vflag -d book -b docbook -a gitrevision=`git describe --dirty` \
-o target/$book.xml $book_file
xmllint --nonet --noout --valid target/$book.xml
dblatex -t pdf $dblatex_opts_common \
Expand All @@ -100,7 +100,7 @@ run_xslt_fcn() {
# Build the Chunked HTML
if array_contains "chunked" "${formats[@]}"; then
echo "Building Multi Page HTML"
$asciidoc_exe $vflag -d book -b docbook \
$asciidoc_exe $vflag -d book -b docbook -a gitrevision=`git describe --dirty` \
-o target/$book.xml $book_file
xmllint --nonet --noout --valid target/$book.xml
(
Expand All @@ -127,7 +127,7 @@ fi
# Build the EPUB
if array_contains "epub" "${formats[@]}"; then
echo "Building EPUB"
$asciidoc_exe $vflag -d book -b docbook \
$asciidoc_exe $vflag -d book -b docbook -a gitrevision=`git describe --dirty` \
-o target/$book.xml $book_file
xmllint --nonet --noout --valid target/$book.xml
(
Expand Down
4 changes: 3 additions & 1 deletion preface-copyright.asciidoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[[preface-copyright]]
== Copyright

Copyright © 2011 Sonatype, Inc.
Copyright © 2011-2016 Sonatype, Inc.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for future-proofing, should be 2008-present


Online version published by Sonatype, Inc.

Expand Down Expand Up @@ -42,3 +42,5 @@ While every precaution has been taken in the preparation of this book,
the publisher and authors assume no responsibility for errors or
omissions, or for damages resulting from the use of the information
contained herein.

This copy was built from revision +{gitrevision}+.