all repos — min @ 469cfaf63879d5a1e375f2e683f51949f86a1fd1

A small but practical concatenative programming language.

tasks/h3rald.min

 1
#!/usr/bin/env min

"_helpers" require :helpers 'helpers import

config /version :min-version
"Min_DeveloperGuide.htm" :guide-file
"../h3rald/assets/min/" guide-file suffix :h3rald-guide
"../h3rald/contents/min.md" :h3rald-min-md
"version:\s+\d+\.\d+\.\d+" :min-v-reg
"version: $#" (min-version) =% :min-v-rep

(
  symbol update
  (==>)
  (
    "Updating min Developer Guide and project on H3RALD.com..." notice!
    guide-file h3rald-guide cp
    h3rald-min-md fread min-v-reg min-v-rep replace :updated-contents
    updated-contents h3rald-min-md fwrite
    "Done." notice!
  ) 
) ::
;; Updates the min Developer Guide and project page on H3RALD.com

(
  symbol build
  (==>)
  (
    "git" required
    "hastysite" required
    "Pulling content and rebuilding H3RALD.com web site..." notice!
    ; Assuming min and h3rald are siblings
    .. cd "h3rald" cd
    "git pull" !!
    "hastysite build" !!
    .. cd "min" cd
  )
) ::
;; Builds H3RALD.com web site