File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,14 @@ if [ -z "${BOOST_SRC_DIR:-}" ]; then
3939 fi
4040fi
4141
42+ BRANCH=master
43+
4244if [ -n " ${BOOST_SRC_DIR:- } " ]; then
4345 if [ -n " ${CIRCLE_REPOSITORY_URL:- } " ]; then
4446 if [[ " $CIRCLE_REPOSITORY_URL " =~ boostorg/boost(\. git)? $ ]]; then
4547 LIB=" $( basename " $( dirname " $SCRIPT_DIR " ) " ) "
4648 REPOSITORY=" boostorg/${LIB} "
49+ BRANCH=$( git -C " $BOOST_SRC_DIR " rev-parse --abbrev-ref HEAD)
4750 else
4851 ACCOUNT=" ${CIRCLE_REPOSITORY_URL#*: } "
4952 ACCOUNT=" ${ACCOUNT%%/* } "
@@ -81,7 +84,7 @@ echo "Fixing links to non-mrdocs URIs..."
8184
8285for f in $( find html -name ' *.html' ) ; do
8386 perl -i -pe ' s{{{(.*?)}}}{<a href="../../../$1.html">$1</a>}g' " $f "
84- perl -i -pe ' s{<a href="motivation .html">Boost.OpenMethod</a>}{<a href="https://www.boost.org/library/develop /openmethod/">Boost.OpenMethod</a> }g' " $f "
87+ perl -i -pe ' s{href="index .html"}{ href="https://www.boost.org/library/${BRANCH} /openmethod/"}g' " $f "
8588done
8689
8790
Original file line number Diff line number Diff line change 1- * xref:motivation .adoc[Motivation]
1+ * xref:index .adoc[Motivation]
22* Basic Features
33** xref:basics.adoc[Methods and Overriders]
44** xref:performance.adoc[Performance]
File renamed without changes.
You can’t perform that action at this time.
0 commit comments