From 8b52c39bab701783a80802c5e6ebcc07231bb74c Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 9 Jun 2018 11:46:38 -0700 Subject: [PATCH] Fixed the new project command, fixed the 4coder unix project commands --- 4coder_project_commands.cpp | 6 +++--- project.4coder | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/4coder_project_commands.cpp b/4coder_project_commands.cpp index ffea8a8c..15f035af 100644 --- a/4coder_project_commands.cpp +++ b/4coder_project_commands.cpp @@ -1300,11 +1300,11 @@ project_generate_project_4coder_file(Partition *scratch, fprintf(out, "command_list = {\n"); fprintf(out, " { .name = \"build\",\n"); fprintf(out, " .out = \"*compilation*\", .footer_panel = true, .save_dirty_files = true,\n"); - fprintf(out, " .cmd = { { \"%.*s.bat\", .os = \"win\" },\n", + fprintf(out, " .cmd = { { \"%.*s.bat\" , .os = \"win\" },\n", script_file.size, script_file.str); - fprintf(out, " { \"%.*s.sh\" , .os = \"linux\" },\n", + fprintf(out, " { \"./%.*s.sh\", .os = \"linux\" },\n", script_file.size, script_file.str); - fprintf(out, " { \"%.*s.sh\" , .os = \"mac\" }, }, },\n", + fprintf(out, " { \"./%.*s.sh\", .os = \"mac\" }, }, },\n", script_file.size, script_file.str); fprintf(out, " { .name = \"run\",\n"); fprintf(out, " .out = \"*run*\", .footer_panel = false, .save_dirty_files = false,\n"); diff --git a/project.4coder b/project.4coder index 415343d1..b4bfaa05 100644 --- a/project.4coder +++ b/project.4coder @@ -33,13 +33,13 @@ command_list = { { .name = "build site", .out = "*site*", .footer_panel = false, .save_dirty_files = true, .cmd = { {"build_site.bat", .os = "win" }, - {"build_site.sh" , .os = "linux"}, - {"build_site.sh" , .os = "mac" }, }, }, + {"./build_site.sh" , .os = "linux"}, + {"./build_site.sh" , .os = "mac" }, }, }, { .name = "build string", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cmd = { {"build_string.bat", .os = "win" }, - {"build_string.sh" , .os = "linux"}, - {"build_string.sh" , .os = "mac" }, }, }, + {"./build_string.sh" , .os = "linux"}, + {"./build_string.sh" , .os = "mac" }, }, }, { .name = "build x86", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cmd = { {build_x86_win32, .os = "win" }, @@ -48,18 +48,18 @@ command_list = { { .name = "build metadata", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cmd = { {"build_metadata.bat", .os = "win" }, - {"build_metadata.sh" , .os = "linux"}, - {"build_metadata.sh" , .os = "mac" }, }, }, + {"./build_metadata.sh" , .os = "linux"}, + {"./build_metadata.sh" , .os = "mac" }, }, }, { .name = "package", .out = "*package*", .footer_panel = false, .save_dirty_files = true, .cmd = { {"package.bat", .os = "win" }, - {"package.sh" , .os = "linux"}, - {"package.sh" , .os = "mac" }, }, }, + {"./package.sh" , .os = "linux"}, + {"./package.sh" , .os = "mac" }, }, }, { .name = "build config parser generator", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cmd = { {"build_config_parser_generator.bat", .os = "win" }, - {"build_config_parser_generator.sh" , .os = "linux"}, - {"build_config_parser_generator.sh" , .os = "mac" }, }, }, + {"./build_config_parser_generator.sh" , .os = "linux"}, + {"./build_config_parser_generator.sh" , .os = "mac" }, }, }, { .name = "generate config parser", .out = "*gen*", .footer_panel = false, .save_dirty_files = true, .cmd = { {"..\\build\\generate_config_parser", .os = "win" },