setup build samples script

This commit is contained in:
Allen Webster
2021-08-21 19:16:45 -07:00
parent c92e703d2b
commit a6f3a12a7d
4 changed files with 26 additions and 3 deletions
-1
View File
@@ -524,7 +524,6 @@ elif [ "$command" == "link" ]; then
elif [ "$command" == "lib" ]; then
bld_lib ${args[@]}
elif [ "$command" == "unit" ]; then
echo bld_unit ${args[@]}
bld_unit ${args[@]}
else
echo "'$command' not a recognized command"
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
###### Get Paths ##############################################################
og_path=$PWD
cd "$(dirname "$0")"
cd ..
###### Script #################################################################
echo "~~~ Build All Samples ~~~"
bin/bld_core.sh unit old_style_custom_layer samples/old_style_custom_layer.c
bin/bld_core.sh unit toy_language samples/toy_language/toy_language.c
bin/bld_core.sh unit static_site_generator samples/static_site_generator/static_site_generator.c
bin/bld_core.sh unit output_parse samples/output_parse/output_parse.c
bin/bld_core.sh unit c_code_generation samples/c_code_generation.c
bin/bld_core.sh unit node_errors samples/node_errors/node_errors.c
bin/bld_core.sh unit parse_check samples/parse_check.c
###### Restore Path ###########################################################
cd $og_path
+5 -1
View File
@@ -1,2 +1,6 @@
###### Visual Studio Compiler #################################################
cl>-nologo
cl>-nologo
cl>-Zi
cl>-FC
cl>-MP
+1 -1
View File
@@ -19,7 +19,7 @@ int main(int argument_count, char **arguments)
for(MD_EachNode(node, root->first_child))
{
MD_String8List strs = MD_DebugStringListFromNode(arena, node, 0, MD_S8Lit(" "), MD_GenerateFlags_Tree);
MD_String8 str = MD_S8ListJoin(arena, &strs, 0);
MD_String8 str = MD_S8ListJoin(arena, strs, 0);
fprintf(stdout, "%.*s\n", MD_S8VArg(str));
}
}