~exelotl/natu-examples

3e8488662f827c9095990e5df574c53ccc164476 — Jeremy Clarke 1 year, 10 months ago cb096b6 master
Don't try to build the .git directory.
1 files changed, 9 insertions(+), 5 deletions(-)

M config.nims
M config.nims => config.nims +9 -5
@@ 1,13 1,17 @@
import std/[strutils]

task build_examples, "build all examples":
  for dir in listDirs(thisDir()):
    withDir dir:
      echo dir
      selfExec "build"
    if not dir.endsWith(".git"):
      withDir dir:
        echo dir
        selfExec "build"

task clean_examples, "remove build files for all examples":
  for dir in listDirs(thisDir()):
    withDir dir:
      selfExec "clean"
    if not dir.endsWith(".git"):
      withDir dir:
        selfExec "clean"

task examples, "build all examples":
  # shorthand