29 lines
488 B
Bash
Executable File
29 lines
488 B
Bash
Executable File
#! /bin/bash
|
|
#
|
|
# Usage:
|
|
# script/proof
|
|
|
|
set -e
|
|
|
|
function msg {
|
|
printf "\e[0;37m==> $1\e[0m\n"
|
|
}
|
|
|
|
SOURCE="site"
|
|
DESTINATION="_site"
|
|
|
|
export PROOF=true
|
|
export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
|
|
|
# 1.
|
|
msg "Installing..."
|
|
bundle install -j8 > /dev/null || bundle install > /dev/null
|
|
|
|
# 2.
|
|
msg "Building..."
|
|
bundle exec jekyll build -s $SOURCE -d $DESTINATION --full-rebuild --trace
|
|
|
|
# 3.
|
|
msg "Proofing..."
|
|
time bundle exec htmlproof ./$DESTINATION --href-ignore /Chrononaut/,/twitter.com/
|