all repos — min @ d0d644faeeecdd1812927dbd61b3061ab3e81187

A small but practical concatenative programming language.

tasks/h3rald.min

 1
#!/usr/bin/env min

"_helpers" require :helpers 'helpers import

config "version" dget :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
    parent-dir cd "h3rald" cd
    "git pull" !!
    "hastysite build" !!
    parent-dir cd "min" cd
  )
) ::
;; Builds H3RALD.com web site