Skip to content

Commit

Permalink
boostorg/docca (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin authored Dec 17, 2024
1 parent c389b26 commit 29bde8f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
39 changes: 39 additions & 0 deletions scripts/boostorg_docca_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

set -xe

export pythonvirtenvpath=/opt/venvboostdocs
if [ -f ${pythonvirtenvpath}/bin/activate ]; then
source ${pythonvirtenvpath}/bin/activate
fi

if [[ "${JOB_BASE_NAME}" =~ PR ]]; then
BOOST_BRANCH="develop"
else
BOOST_BRANCH=${BRANCH_NAME}
fi

if [ ! -d boost-root ]; then
git clone -b ${BOOST_BRANCH} https://github.com/boostorg/boost.git boost-root
fi
cd boost-root
export BOOST_ROOT=$(pwd)
git pull
git submodule update --init libs/context
git submodule update --init libs/json
git submodule update --init tools/boostbook
git submodule update --init tools/boostdep
# git submodule update --init tools/docca
rsync -av --delete --exclude boost-root --exclude docstarget ../ tools/docca
git submodule update --init tools/quickbook
rsync -av --exclude boost-root ../ tools/$REPONAME
python tools/boostdep/depinst/depinst.py ../tools/quickbook
# Is depinst overwriting the library's folder? Rerun rsync.
rsync -av --delete --exclude boost-root --exclude docstarget ../ tools/docca
./bootstrap.sh
./b2 headers

echo "using doxygen ; using boostbook ; using saxonhe ;" > tools/build/src/user-config.jam

./b2 -j3 tools/$REPONAME/example/
./b2 -j3 tools/$REPONAME/example//boostrelease
5 changes: 5 additions & 0 deletions scripts/boostorg_docca_prebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -xe
echo "export PRTEST=prtest" >> jenkinsjobinfo.sh
echo "export PATH_TO_DOCS=tools/docca/example" >> jenkinsjobinfo.sh

0 comments on commit 29bde8f

Please sign in to comment.