comparison config.nims @ 1140:5934c5615f13

did: update all examples to work with latest refactoring
author sam <sam@basx.dev>
date Sat, 08 Jun 2024 15:16:17 +0700
parents 6406766a222d
children 2e0b527c2753
comparison
equal deleted inserted replaced
1139:114f395b9144 1140:5934c5615f13
52 52
53 exec("nim build_dev --run tests/test_resources.nim") 53 exec("nim build_dev --run tests/test_resources.nim")
54 exec("nim build_dev_zip --run tests/test_resources.nim") 54 exec("nim build_dev_zip --run tests/test_resources.nim")
55 exec("nim build_dev_dir --run tests/test_resources.nim") 55 exec("nim build_dev_dir --run tests/test_resources.nim")
56 56
57 task example_all, "Run all example programs":
58 for file in listFiles("examples"):
59 if file.endsWith(".nim"):
60 exec(&"nim build_dev --run {file}")
61
57 task publish, "publish all build": 62 task publish, "publish all build":
58 for file in listDirs("build/debug/linux"): 63 for file in listDirs("build/debug/linux"):
59 exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/") 64 exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/")
60 for file in listDirs("build/release/linux"): 65 for file in listDirs("build/release/linux"):
61 exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/linux/") 66 exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/linux/")