Sha256: f078894d89fb5af1c5feb2480062340887906191674259778d5c5e941c9557e1

Contents?: true

Size: 564 Bytes

Versions: 24

Compression:

Stored size: 564 Bytes

Contents

#!/bin/bash

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

# figure out the project root under which bin, lib live
shome="$(unset CDPATH; 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

24 entries across 24 versions & 2 rubygems

Version Path
tvd-tvdinner-0.0.13 cookbooks/tvdinner/files/default/jasonx/build-site
tvd-tvdinner-0.0.12 cookbooks/tvdinner/files/default/jasonx/build-site
tvd-tvdinner-0.0.11 cookbooks/tvdinner/files/default/jasonx/build-site
tvd-tvdinner-0.0.9 cookbooks/tvdinner/files/default/jasonx/build-site