forked from nuneco/functions.sh
Tessa L. H. Lovelace
57a19f7a5d
Fixing some autocomplete collisions too. Adding a bit of explanation, but it's just draft, unready for review.
32 lines
803 B
Bash
Executable File
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"
|