Sha256: f60be465d07bc51db8d8df0feb63b64dad6edacb20559281558692c136535f03

Contents?: true

Size: 550 Bytes

Versions: 5

Compression:

Stored size: 550 Bytes

Contents

#!/bin/bash

#/ NAME
#/     build-site -- build nanoc site
#/
#/ SYNOPSIS
#/     build site

# figure out the project root under which bin, lib live
shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"

# load a jason bourne library
source "$shome/libexec/_jason"

# define command line options:
DEFINE_boolean 'clean' "$FLAGS_FALSE" 'delete output directory first'

# entry point
function main {
  if [[ "$FLAGS_clean" = "$FLAGS_TRUE" ]]; then
    rm -rf "$shome/output"
  fi

  bundle exec ghp compile
}

require sub "$BASH_SOURCE" "$@"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tvd-tvdinner-0.0.8 cookbooks/tvdinner/files/default/jasonx/build-site
tvd-tvdinner-0.0.6 cookbooks/tvdinner/files/default/jasonx/build-site
tvd-tvdinner-0.0.5 cookbooks/tvdinner/files/default/jasonx/build-site
tvd-tvdinner-0.0.4 cookbooks/tvdinner/files/default/jasonx/build-site
tvd-tvdinner-0.0.3 cookbooks/tvdinner/files/default/jasonx/build-site