Skip to content

Commit

Permalink
build_docs: debugging flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin committed Oct 16, 2024
1 parent d32b5c8 commit 45a1a27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion build_docs/linuxdocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pythonvirtenvpath="${HOME}/venvboostdocs"

# READ IN COMMAND-LINE OPTIONS

TEMP=`getopt -o t:,h::,q:: --long type:,help::,skip-boost::,skip-packages::,quick::,boostrelease::,boostrootsubdir:: -- "$@"`
TEMP=`getopt -o t:,h::,q:: --long type:,help::,skip-boost::,skip-packages::,quick::,boostrelease::,boostrootsubdir::,debug:: -- "$@"`
eval set -- "$TEMP"

# extract options and their arguments into variables.
Expand All @@ -41,6 +41,7 @@ optional arguments:
-q, --quick Equivalent to setting both --skip-boost and --skip-packages. If not sure, then don't skip these steps.
--boostrelease Add the target //boostrelease to the doc build. This target is used when building production releases.
--boostrootsubdir If creating a boost-root directory, instead of placing it in ../ use a subdirectory.
--debug Debugging.
standard arguments:
path_to_library Where the library is located. Defaults to current working directory.
"""
Expand All @@ -57,6 +58,8 @@ standard arguments:
esac ;;
--skip-boost)
skipboostoption="yes" ; shift 2 ;;
--debug)
debugoption="yes" ; set -x ; shift 2 ;;
--skip-packages)
skippackagesoption="yes" ; shift 2 ;;
-q|--quick)
Expand Down
7 changes: 5 additions & 2 deletions build_docs/macosdocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export PATH="${homebrew_base_path}/opt/gnu-getopt/bin:$PATH"

# READ IN COMMAND-LINE OPTIONS

TEMP=`${homebrew_base_path}/opt/gnu-getopt/bin/getopt -o t:,h::,q:: --long type:,help::,skip-boost::,skip-packages::,quick::,boostrelease::,boostrootsubdir:: -- "$@"`
TEMP=`${homebrew_base_path}/opt/gnu-getopt/bin/getopt -o t:,h::,q:: --long type:,help::,skip-boost::,skip-packages::,quick::,boostrelease::,boostrootsubdir::,debug:: -- "$@"`
eval set -- "$TEMP"

# extract options and their arguments into variables.
Expand All @@ -70,7 +70,8 @@ optional arguments:
--skip-packages Skip installing all packages (pip, gem, apt, etc.) if you are certain that has already been done.
-q, --quick Equivalent to setting both --skip-boost and --skip-packages. If not sure, then don't skip these steps.
--boostrelease Add the target //boostrelease to the doc build. This target is used when building production releases.
--boostrootsubdir If creating a boost-root directory, instead of placing it in ../ use a subdirectory.
--boostrootsubdir If creating a boost-root directory, instead of placing it in ../ use a subdirectory.
--debug Debugging.
standard arguments:
path_to_library Where the library is located. Defaults to current working directory.
"""
Expand All @@ -87,6 +88,8 @@ standard arguments:
esac ;;
--skip-boost)
skipboostoption="yes" ; shift 2 ;;
--debug)
debugoption="yes" ; set -x ; shift 2 ;;
--skip-packages)
skippackagesoption="yes" ; shift 2 ;;
-q|--quick)
Expand Down

0 comments on commit 45a1a27

Please sign in to comment.