mirror of
https://github.com/Ed94/metadesk.git
synced 2026-06-13 07:52:22 -07:00
setup build samples script
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
@@ -1,2 +1,6 @@
|
||||
###### Visual Studio Compiler #################################################
|
||||
cl>-nologo
|
||||
cl>-nologo
|
||||
cl>-Zi
|
||||
cl>-FC
|
||||
cl>-MP
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user