all repos — min @ 3fdfc0a7f5d0b26f6a0f1156edf5d73faef7de4d

A small but practical concatenative programming language.

Updated release tasks.
h3rald h3rald@h3rald.com
Mon, 07 Dec 2020 08:17:32 +0100
commit

3fdfc0a7f5d0b26f6a0f1156edf5d73faef7de4d

parent

29d53e438796d1830a562d1f4f1d75f854554228

3 files changed, 46 insertions(+), 0 deletions(-)

jump to
M next-release.mdnext-release.md

@@ -9,3 +9,5 @@ * Now using a set of min tasks to perform a min release and other common operations.

* Added **escape** operator to escape quotes and special characters in a string. * Added **quit** operator to exit with a 0 code. * Addes **prefix** and **suffix** operators to prepens and append one string to another. + +**BONUS!** Are you using Visual Studio Code? check out the new [official extension](https://marketplace.visualstudio.com/items?itemName=h3rald.vscode-min-lang) for the min programming language!
M tasks/release.mintasks/release.min

@@ -2,16 +2,20 @@ #!/usr/bin/env min

"build" load "github" load +"ssh" load {} ( build-tasks ^guide build-tasks ^site + build-tasks ^vim build-tasks ^windows build-tasks ^linux build-tasks ^macosx github-tasks ^update github-tasks ^upload + ssh-tasks ^build + ssh-tasks ^h3rald "All done!" notice ) %default +release-tasks
M tasks/ssh.mintasks/ssh.min

@@ -1,8 +1,48 @@

#!/usr/bin/env min +".env.yml" fread from-yaml :env "min.yml" fread from-yaml :config +env /ssh-host :host +env /ssh-h3rald-dir :h3rald-dir +env /ssh-min-dir :min-dir +"Min_DeveloperGuide.htm" :guide-file +"$#/assets/min/$#" (h3rald-dir guide-file) =% :h3rald-guide +"cd " min-dir suffix :min-cd +"cd " h3rald-dir suffix :h3rald-cd + ; Helpers ( :prog (prog which "" ==) ("$# is not available" (prog) =% error 1 exit) when ) :required + +{} +( + "ssh" required + "ssh - build ($#)" (host) =% notice + "cp $# $#" (guide-file h3rald-guide) =% :cp-guide + ( + "export PATH=~/bin:~/.nimble/bin:$PATH" + min-cd + cp-guide + h3rald-cd + "git pull" + "hastysite build" + ) => "; " join :cmds + "ssh $# \"$#\"" (host cmds) =% !! +) %h3rald +( + "ssh" required + "ssh - build ($#)" (host) =% notice + ( + "export PATH=~/bin:~/.nimble/bin:$PATH" + min-cd + "git pull" + "nifty upgrade" + "min run build" + "min run build:guide" + "min run build:site" + ) => "; " join :cmds + "ssh $# \"$#\"" (host cmds) =% !! +) %build ++ssh-tasks