summaryrefslogtreecommitdiff
path: root/publish
diff options
context:
space:
mode:
Diffstat (limited to 'publish')
-rwxr-xr-xpublish22
1 files changed, 22 insertions, 0 deletions
diff --git a/publish b/publish
index 8efdda5..aebaffb 100755
--- a/publish
+++ b/publish
@@ -7,15 +7,35 @@ TEMP=$(mktemp -d);
chmod 755 ${TEMP};
##
+# Build options.
+#
+SASS=0;
+LOGO=0;
+HTML=0;
+for arg; do
+ case "${ARG}" in
+ sass) SASS=1; ;;
+ logo) LOGO=1; ;;
+ html) HTML=1; ;;
+ esac
+done
+
+##
# CSS
#
+if test ${SASS} -eq 1; then
(cd assets/css && ./compile.sh)
+fi # SASS
##
# Logo
#
+if test ${LOGO} -eq 1; then
(cd assets/images && ./polyguin.sh)
+fi # LOGO
+
+if test ${HTML} -eq 1; then
#===============================================================
docker run -v ${HERE}:${HERE} -e HERE=${HERE} -v ${TEMP}:${TEMP} -e TEMP=${TEMP} --rm -i alpine:3.17 <<'EOF'
apk add findutils imagemagick;
@@ -69,3 +89,5 @@ cp ${HERE}/robots.txt ${TEMP};
#
rm -fr ${HTML};
mv ${TEMP} ${HTML};
+
+fi # HTML