all repos — min @ c15b1b6b3e3c976465b376fffa80ecb96a658b77

A small but practical concatenative programming language.

Moved tasks to min.nimble.
h3rald h3rald@h3rald.com
Sun, 18 Nov 2018 18:56:35 +0100
commit

c15b1b6b3e3c976465b376fffa80ecb96a658b77

parent

5d04ec70ab7fe6e2a6f4c299693c3d02858f0aaf

3 files changed, 59 insertions(+), 59 deletions(-)

jump to
M min.nimblemin.nimble

@@ -13,3 +13,61 @@ requires "nifty"

before install: exec "nifty install" + +# Tasks + +const + compile = "nim c -d:release" + linux_x86 = "--cpu:i386 --os:linux" + linux_x64 = "--cpu:amd64 --os:linux" + linux_arm = "--cpu:arm --os:linux" + windows_x64 = "--cpu:amd64 --os:windows" + macosx_x64 = "" + parallel = "--parallelBuild:1 --verbosity:3" + hs = "min" + hs_file = "min.nim" + zip = "zip -X" + +proc shell(command, args: string, dest = "") = + exec command & " " & args & " " & dest + +proc filename_for(os: string, arch: string): string = + return "min" & "_v" & version & "_" & os & "_" & arch & ".zip" + +task windows_x64_build, "Build min for Windows (x64)": + shell compile, windows_x64, hs_file + +task linux_x86_build, "Build min for Linux (x86)": + shell compile, linux_x86, hs_file + +task linux_x64_build, "Build min for Linux (x64)": + shell compile, linux_x64, hs_file + +task linux_arm_build, "Build min for Linux (ARM)": + shell compile, linux_arm, hs_file + +task macosx_x64_build, "Build min for Mac OS X (x64)": + shell compile, macosx_x64, hs_file + +task release, "Release min": + echo "\n\n\n WINDOWS - x64:\n\n" + windows_x64_buildTask() + shell zip, filename_for("windows", "x64"), hs & ".exe" + shell "rm", hs & ".exe" + echo "\n\n\n LINUX - x64:\n\n" + linux_x64_buildTask() + shell zip, filename_for("linux", "x64"), hs + shell "rm", hs + echo "\n\n\n LINUX - x86:\n\n" + linux_x86_buildTask() + shell zip, filename_for("linux", "x86"), hs + shell "rm", hs + echo "\n\n\n LINUX - ARM:\n\n" + linux_arm_buildTask() + shell zip, filename_for("linux", "arm"), hs + shell "rm", hs + echo "\n\n\n MAC OS X - x64:\n\n" + macosx_x64_buildTask() + shell zip, filename_for("macosx", "x64"), hs + shell "rm", hs + echo "\n\n\n ALL DONE!"
D nakefile.nim

@@ -1,58 +0,0 @@

-import - nake - -import - core/consts - -const - compile = "nim c -d:release" - linux_x86 = "--cpu:i386 --os:linux" - linux_x64 = "--cpu:amd64 --os:linux" - linux_arm = "--cpu:arm --os:linux" - windows_x64 = "--cpu:amd64 --os:windows" - macosx_x64 = "" - parallel = "--parallelBuild:1 --verbosity:3" - hs = "min" - hs_file = "min.nim" - zip = "zip -X" - -proc filename_for(os: string, arch: string): string = - return "min" & "_v" & version & "_" & os & "_" & arch & ".zip" - -task "windows-x64-build", "Build min for Windows (x64)": - direshell compile, windows_x64, hs_file - -task "linux-x86-build", "Build min for Linux (x86)": - direshell compile, linux_x86, hs_file - -task "linux-x64-build", "Build min for Linux (x64)": - direshell compile, linux_x64, hs_file - -task "linux-arm-build", "Build min for Linux (ARM)": - direshell compile, linux_arm, hs_file - -task "macosx-x64-build", "Build min for Mac OS X (x64)": - direshell compile, macosx_x64, hs_file - -task "release", "Release min": - echo "\n\n\n WINDOWS - x64:\n\n" - runTask "windows-x64-build" - direshell zip, filename_for("windows", "x64"), hs & ".exe" - direshell "rm", hs & ".exe" - echo "\n\n\n LINUX - x64:\n\n" - runTask "linux-x64-build" - direshell zip, filename_for("linux", "x64"), hs - direshell "rm", hs - echo "\n\n\n LINUX - x86:\n\n" - runTask "linux-x86-build" - direshell zip, filename_for("linux", "x86"), hs - direshell "rm", hs - echo "\n\n\n LINUX - ARM:\n\n" - runTask "linux-arm-build" - direshell zip, filename_for("linux", "arm"), hs - direshell "rm", hs - echo "\n\n\n MAC OS X - x64:\n\n" - runTask "macosx-x64-build" - direshell zip, filename_for("macosx", "x64"), hs - direshell "rm", hs - echo "\n\n\n ALL DONE!"
M site/settings.jsonsite/settings.json

@@ -5,6 +5,6 @@ "templates": "templates",

"temp": "temp", "output": "output", "title": "min language", - "version": "0.19.0", + "version": "0.19.1", "rules": "rules.min" }