Skip to content

Commit

Permalink
build_docs: rearrange depinst.py (#92)
Browse files Browse the repository at this point in the history
* build_docs: depinst.py skip REPONAME

* build_docs: rearrange depinst.py
  • Loading branch information
sdarwin authored Jan 15, 2025
1 parent e49d397 commit 6b4c216
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 25 deletions.
33 changes: 23 additions & 10 deletions build_docs/linuxdocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -411,18 +411,31 @@ if [ "$skipboostoption" != "yes" ] && [ "$typeoption" != "antora" ] ; then
git submodule update --init tools/quickbook
git submodule update --init tools/boostlook

if [ "$typeoption" = "main" ]; then
git submodule update --init tools/auto_index
python3 tools/boostdep/depinst/depinst.py ../tools/auto_index

# recopy the library if it was overwritten.
if [ ! "${BOOSTROOTLIBRARY}" = "yes" ]; then
# cp -rf ${BOOST_SRC_FOLDER}/!(boost-root) ${librarypath}
rsync -av --exclude 'boost-root' --delete "$BOOST_SRC_FOLDER/" "$librarypath"
fi
# if [ "$typeoption" = "main" ]; then
# git submodule update --init tools/auto_index
# python3 tools/boostdep/depinst/depinst.py --ignore "${REPONAME}" -vv ../tools/auto_index

# # recopy the library if it was overwritten.
# if [ ! "${BOOSTROOTLIBRARY}" = "yes" ]; then
# # cp -rf ${BOOST_SRC_FOLDER}/!(boost-root) ${librarypath}
# rsync -av --exclude 'boost-root' --delete "$BOOST_SRC_FOLDER/" "$librarypath"
# fi
# fi

# Previously the logic had been to only install auto_index for "$typeoption" = "main"
# It's simpler to always install that.
# Also, --ignore is broken on depinst.py.

git submodule update --init tools/auto_index
python3 tools/boostdep/depinst/depinst.py --ignore "${REPONAME}" ../tools/auto_index
python3 tools/boostdep/depinst/depinst.py --ignore "${REPONAME}" ../tools/quickbook

# recopy the library if it was overwritten.
if [ ! "${BOOSTROOTLIBRARY}" = "yes" ]; then
# cp -rf ${BOOST_SRC_FOLDER}/!(boost-root) ${librarypath}
rsync -av --exclude 'boost-root' --delete "$BOOST_SRC_FOLDER/" "$librarypath"
fi

python3 tools/boostdep/depinst/depinst.py ../tools/quickbook
./bootstrap.sh
./b2 headers

Expand Down
32 changes: 23 additions & 9 deletions build_docs/macosdocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,29 @@ if [ "$skipboostoption" != "yes" ] && [ "$typeoption" != "antora" ] ; then
git submodule update --init tools/build
sed -i 's~GLOB "/usr/share/java/saxon/"~GLOB "/Library/Java/Extensions/" "/usr/share/java/saxon/"~' tools/build/src/tools/saxonhe.jam

if [ "$typeoption" = "main" ]; then
git submodule update --init tools/auto_index
python3 tools/boostdep/depinst/depinst.py ../tools/auto_index

# recopy the library if it was overwritten.
if [ ! "${BOOSTROOTLIBRARY}" = "yes" ]; then
# cp -rf ${BOOST_SRC_FOLDER}/!(boost-root) ${librarypath}
rsync -av --exclude 'boost-root' --delete "$BOOST_SRC_FOLDER/" "$librarypath"
fi
# if [ "$typeoption" = "main" ]; then
# git submodule update --init tools/auto_index
# python3 tools/boostdep/depinst/depinst.py ../tools/auto_index

# # recopy the library if it was overwritten.
# if [ ! "${BOOSTROOTLIBRARY}" = "yes" ]; then
# # cp -rf ${BOOST_SRC_FOLDER}/!(boost-root) ${librarypath}
# rsync -av --exclude 'boost-root' --delete "$BOOST_SRC_FOLDER/" "$librarypath"
# fi
# fi

# Previously the logic had been to only install auto_index for "$typeoption" = "main"
# It's simpler to always install that.
# Also, --ignore is broken on depinst.py.

git submodule update --init tools/auto_index
python3 tools/boostdep/depinst/depinst.py --ignore "${REPONAME}" ../tools/auto_index
python3 tools/boostdep/depinst/depinst.py --ignore "${REPONAME}" ../tools/quickbook

# recopy the library if it was overwritten.
if [ ! "${BOOSTROOTLIBRARY}" = "yes" ]; then
# cp -rf ${BOOST_SRC_FOLDER}/!(boost-root) ${librarypath}
rsync -av --exclude 'boost-root' --delete "$BOOST_SRC_FOLDER/" "$librarypath"
fi

python3 tools/boostdep/depinst/depinst.py ../tools/quickbook
Expand Down
9 changes: 3 additions & 6 deletions build_docs/windowsdocs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,9 @@ if ( -Not ${skip-boost} ) {
git submodule update --init tools/build
git submodule update --init tools/boostlook

if ($typeoption -eq "main") {
git submodule update --init tools/auto_index
python tools/boostdep/depinst/depinst.py ../tools/auto_index
}
git submodule update --init tools/auto_index
python tools/boostdep/depinst/depinst.py ../tools/quickbook
python tools/boostdep/depinst/depinst.py ../tools/auto_index

# Recopy the library, if it was overwritten by the submodule updates that just occurred.
if ( -Not ($BOOSTROOTLIBRARY -eq "yes") ) {
Expand All @@ -627,8 +626,6 @@ if ( -Not ${skip-boost} ) {
$replacer='.saxonhe_jar = $(jar[1]) ; .saxonhe_jar = \"/usr/share/java/Saxon-HE.jar\" ;'
sed -i "s~$matcher~$replacer~" tools/build/src/tools/saxonhe.jam

python tools/boostdep/depinst/depinst.py ../tools/quickbook

Write-Output "Running bootstrap.bat"
./bootstrap.bat

Expand Down

0 comments on commit 6b4c216

Please sign in to comment.