UNPKG

736 Bapplication/x-shView Raw
1#!/bin/bash
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...
13MY_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
20echo " "
21echo " "
22
23printf "%-17s" " "
24printf "\e[1;30m%s\e[m" "Docs built; Waiting for source updates..."
25printf "%-18s" " "
26printf "\n"
27
28# Blank Line
29printf "\n"
30
31# Now we wait...
32sleep infinity
33
34
\No newline at end of file