From 7073957e9ef88981c3947bcee18e73ab30583892 Mon Sep 17 00:00:00 2001 From: "Archie L. Cobbs" Date: Sun, 24 Apr 2016 14:38:10 -0500 Subject: [PATCH 1/2] Update copyright year to 2016. --- preface-copyright.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preface-copyright.asciidoc b/preface-copyright.asciidoc index a91a4c6e..b3ca9c17 100644 --- a/preface-copyright.asciidoc +++ b/preface-copyright.asciidoc @@ -1,7 +1,7 @@ [[preface-copyright]] == Copyright -Copyright © 2011 Sonatype, Inc. +Copyright © 2011-2016 Sonatype, Inc. Online version published by Sonatype, Inc. From 155eda26abffef547faf61d09c1e1dc4ae94b8ad Mon Sep 17 00:00:00 2001 From: "Archie L. Cobbs" Date: Sun, 24 Apr 2016 14:41:14 -0500 Subject: [PATCH 2/2] Show build's git revision on the copyright page. --- build.sh | 8 ++++---- preface-copyright.asciidoc | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index c89d2175..c43ab6ff 100755 --- a/build.sh +++ b/build.sh @@ -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" @@ -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 \ @@ -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 ( @@ -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 ( diff --git a/preface-copyright.asciidoc b/preface-copyright.asciidoc index b3ca9c17..b78e487c 100644 --- a/preface-copyright.asciidoc +++ b/preface-copyright.asciidoc @@ -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}+.