summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreudoxia <uplink@distress.network>2020-12-11 12:18:06 -0500
committereudoxia <uplink@distress.network>2020-12-11 12:18:06 -0500
commite68d63979b8eed949f77bfbd65953f8be655e71c (patch)
treea38aa86d51864705f721c83f1a9d89492a258fd4
parent5cc210b7c62dde5f5d6b55a44e877443b07a0677 (diff)
reload.sh: added full site rebuild function
-rwxr-xr-xreload.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/reload.sh b/reload.sh
index 4794d6d..311492d 100755
--- a/reload.sh
+++ b/reload.sh
@@ -1,6 +1,19 @@
#!/bin/sh
set -e
+rebuild() {
+find -L distress.network | grep '/src.md' | sed 's;/src.md$;;' | \
+while IFS='' read -r data ; do
+ sh ./md.sh ${data} > /dev/null ;
+ echo " built: ${data}" ;
+done
+echo "[ok] full rebuild"
+}
+
+if [ "$1" = -r ] ; then
+ rebuild ;
+fi
+
sh ./nav.sh distress.network distress.network/nav.html > /dev/null
echo "[ok] nav embed"