summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2020-07-08 01:16:11 -0400
committerKylie McClain <kylie@somas.is>2020-07-08 01:16:11 -0400
commit30ba189fb16d3f0381a8462344197782b1b6e1fd (patch)
treea2269d51dce394f5f88c2352ced3f188b4f0f06d
parent82b8af14c19a0cc757fc5fc44625e980eefea0a1 (diff)
downloadmeta-30ba189fb16d3f0381a8462344197782b1b6e1fd.tar.gz
meta-30ba189fb16d3f0381a8462344197782b1b6e1fd.tar.xz
meta-30ba189fb16d3f0381a8462344197782b1b6e1fd.zip
site.sh: uncomplicate a little bit
-rw-r--r--site.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/site.sh b/site.sh
index e28cafc..44eda96 100644
--- a/site.sh
+++ b/site.sh
@@ -11,22 +11,20 @@ mkdir -p site
https://git.mutiny.red/mutiny/praxis
}"
-while [ $# -gt 0 ]; do
- printf 'ASCIIDOCTOR_FLAGS += "%s"\n' "$1" >> site/config.mk
- shift
-done
-
for d in ${COMBINES}; do
name="${d##*/}"; name="${name%%.git}"
git clone --depth=1 "${d}" site/"${name}"
touch site/"${name}"/config.mk
- [ -f ./config.mk ] && cat ./config.mk > site/"${name}"/config.mk
+ [ -f ./config.mk ] && cat ./config.mk >> site/"${name}"/config.mk
ln -sf ../config.mk site/"${name}"/config.mk
done
-make clean
+while [ $# -gt 0 ]; do
+ printf 'ASCIIDOCTOR_FLAGS += "%s"\n' "$1" >> site/config.mk
+ shift
+done
-for d in ${COMBINES}; do
+for d in .. ${COMBINES}; do
name="${d##*/}"; name="${name%%.git}"
make -C site/"${name}" html
done