functions.sh/com/docs/publish.sh
Tessa L. H. Lovelace 57a19f7a5d Adjusting structure and nomenclature.
Fixing some autocomplete collisions too.
Adding a bit of explanation, but it's just draft, unready for review.
2019-03-06 20:49:21 -08:00

32 lines
803 B
Bash
Executable File

#!/bin/bash
# @author:'jakimfett'
# @license;'cc-by-sa'
#
# Automate microsite publication and caching.
outPut='microsite';
# rm -rf ./microsite
# mkdir -p microsite
# git submodule add -b gh-pages git@github.com:jakimfett/functions.sh microsite
# git submodule update --init
# git submodule update --remote
if [ -d "${outPut}" ]; then
cd "${outPut}"
fi
# These options wipe out the branch each time.
# git rm -r --cached .
# git clean -fxd
# git branch -D gh-pages
# git checkout --orphan gh-pages
#git fetch origin development
#git show development:functions.sh > index.html
cat ../functions.sh > index.html
git add index.html
cat index.html | sha3sum | awk '{print $1}' > sha3.hash
cat index.html | md5sum | awk '{print $1}' > md5.hash
git add *.hash
#git commit -m "autogenerated by prototype"