squeeze

A static site generator that can put the toothpaste back in the tube.
git clone https://git.mulligrubs.me/squeeze
Log | Files | Refs | README | LICENSE

commit 0d675aa3ca8b9f260642dcad87a12f3d6dedd277
parent ab878a8e29481d504c3bc67446d11361499cee2c
Author: St John Karp <contact@stjo.hn>
Date:   Sun, 29 Aug 2021 08:30:08 -0400

Remove the hacks to wait for child jobs to complete

We can now properly rely on the built-in `wait` command instead
of using a workaround to detect if any `sed` or `smartypants` processes
are running. I believe the problem was introduced by the way Prolog
called external commands.

Diffstat:
Msqueeze.sh | 6------
Munsqueeze.sh | 6------
2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/squeeze.sh b/squeeze.sh @@ -49,12 +49,6 @@ find "$SOURCE_PATH" -type f -name "*.md" | # Wait until all jobs have completed. wait -# The `wait` command doesn't seem to wait for all the running jobs. -# Maybe it's stopping after all `swipl` processes complete? -# This hack just checks to see if any sed or smartypants processes are running. -while [ $(ps -A | grep -c -e " sed$" -e " smartypants$") -gt 0 ]; do - sleep 1 -done # Generate the RSS feed. mkdir -p "$OUTPUT_PATH/feeds" diff --git a/unsqueeze.sh b/unsqueeze.sh @@ -42,9 +42,3 @@ find "$OUTPUT_PATH" -type f -name "*.html" | # Wait until all jobs have completed. wait -# The `wait` command doesn't seem to wait for all the running jobs. -# Maybe it's stopping after all `swipl` processes complete? -# This hack just checks to see if any sed processes are running. -while [ $(ps -A | grep -c " sed$") -gt 0 ]; do - sleep 1 -done