HBASE-21058 When testing branches one, the PDF ref guide is named 'book.pdf'
Signed-off-by: Peter Somogyi <psomo...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/05623021 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/05623021 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/05623021 Branch: refs/heads/branch-1.4 Commit: 056230212cd79bc1be061d3df2bd7a23f8b87fc4 Parents: f778a95 Author: Sean Busbey <bus...@apache.org> Authored: Wed Aug 15 13:16:16 2018 -0500 Committer: Sean Busbey <bus...@apache.org> Committed: Tue Aug 21 09:47:43 2018 -0500 ---------------------------------------------------------------------- dev-support/hbase-personality.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/05623021/dev-support/hbase-personality.sh ---------------------------------------------------------------------- diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 88bfff2..6c99839 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -293,6 +293,7 @@ function refguide_rebuild local repostatus=$1 local logfile="${PATCH_DIR}/${repostatus}-refguide.log" declare -i count + declare pdf_output if ! verify_needed_test refguide; then return 0 @@ -329,7 +330,13 @@ function refguide_rebuild return 1 fi - if [[ ! -f "${PATCH_DIR}/${repostatus}-site/apache_hbase_reference_guide.pdf" ]]; then + if [[ "${PATCH_BRANCH}" = branch-1* ]]; then + pdf_output="book.pdf" + else + pdf_output="apache_hbase_reference_guide.pdf" + fi + + if [[ ! -f "${PATCH_DIR}/${repostatus}-site/${pdf_output}" ]]; then add_vote_table -1 refguide "${repostatus} failed to produce the pdf version of the reference guide." add_footer_table refguide "@@BASE@@/${repostatus}-refguide.log" return 1