Skip to content


Subversion checkout URL

You can clone with
Download ZIP
executable file 58 lines (48 sloc) 2.2 kb
# fail if anything errors
set -e
# fail if a function call is missing an argument
set -u
# load properties to be able to use them in here
echo "nexus_version set to $nexus_version"
if [ $publish_master == "true" ]; then
echo "Preparing for master deployment"
rm -rf target/site/reference
rm -rf target/site/pdf
rm -rf target/site/other
mkdir -p target/site/reference
mkdir -p target/site/pdf
mkdir -p target/site/other
echo "Preparing for version $nexus_version deployment"
rm -rf target/site/$nexus_version/reference
rm -rf target/site/$nexus_version/pdf
rm -rf target/site/$nexus_version/other
mkdir -p target/site/$nexus_version/reference
mkdir -p target/site/$nexus_version/pdf
mkdir -p target/site/$nexus_version/other
if [ $publish_master == "true" ]; then
echo "Copying for master deployment"
cp -r target/book-nexus.chunked/* target/site/reference
mkdir -p target/site/reference/css
cp -r site/css target/site/reference
cp -r site/js target/site/reference
cp -r site/images target/site/reference
cp site/search.html target/site/reference
cp target/book-nexus.pdf target/site/pdf/nxbook-pdf.pdf
cp target/sonatype-nexus-eval-guide.pdf target/site/pdf/sonatype-nexus-eval-guide.pdf
cp target/book-nexus.epub target/site/other/nexus-book.epub
echo "Copying for version $nexus_version deployment"
cp -r target/book-nexus.chunked/* target/site/$nexus_version/reference
mkdir -p target/site/$nexus_version/reference/css
cp -r site/css target/site/$nexus_version/reference
cp -r site/js target/site/$nexus_version/reference
cp -r site/images target/site/$nexus_version/reference
cp site/search.html target/site/$nexus_version/reference
cp target/book-nexus.pdf target/site/$nexus_version/pdf/nxbook-pdf.pdf
cp target/sonatype-nexus-eval-guide.pdf target/site/$nexus_version/pdf/sonatype-nexus-eval-guide.pdf
cp target/book-nexus.epub target/site/$nexus_version/other/nexus-book.epub
python -p "target/site/reference" -t "../" -s "block" -v "$nexus_version"
python -p "target/site/$nexus_version/reference" -t "../../" -s "block" -v "$nexus_version"
Jump to Line
Something went wrong with that request. Please try again.