1 |
|
2 |
|
3 | # -
|
4 | # This script is a simple extension of 'build-docs-local.sh'; all it does is add
|
5 | # an infinite sleep/wait after the docs have been built so that the script
|
6 | # never terminates. The point is to allow execution and source watching via
|
7 | # PM2 for continuous documentation updates during development.
|
8 | #
|
9 | # You should never need to run this script directly...
|
10 | # -
|
11 |
|
12 | # Find our path...
|
13 | MY_SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
14 |
|
15 | # Run the main script
|
16 | "$MY_SCRIPT_PATH/build-docs-local.sh"
|
17 |
|
18 |
|
19 | # Say something
|
20 | echo " "
|
21 | echo " "
|
22 |
|
23 | printf "%-17s" " "
|
24 | printf "\e[1;30m%s\e[m" "Docs built; Waiting for source updates..."
|
25 | printf "%-18s" " "
|
26 | printf "\n"
|
27 |
|
28 | # Blank Line
|
29 | printf "\n"
|
30 |
|
31 | # Now we wait...
|
32 | sleep infinity
|
33 |
|
34 |
|
\ | No newline at end of file |