From 01a5e24928c0e446870233ab2abdeb9d1fd3812d Mon Sep 17 00:00:00 2001 From: Darcy Shen Date: Fri, 2 Aug 2024 14:13:00 +0800 Subject: [PATCH 1/2] Installation and minor fix --- src/goldfish.cpp | 4 ++-- xmake.lua | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/goldfish.cpp b/src/goldfish.cpp index 14f3bf9..decbc2a 100644 --- a/src/goldfish.cpp +++ b/src/goldfish.cpp @@ -36,9 +36,9 @@ void display_help() { << "display version" << endl; cout << "-e \t" << "-e '(+ 1 2)'" << endl; - cout << "-l FILE\t" + cout << "-l FILE \t" << "Load the scheme code on path" << endl; - cout << "FILE\t" + cout << "FILE \t" << "Load the scheme code on path and print the evaluated result" << endl; } diff --git a/xmake.lua b/xmake.lua index 440ae90..eb28371 100644 --- a/xmake.lua +++ b/xmake.lua @@ -19,4 +19,7 @@ target ("goldfish") do set_targetdir("$(projectdir)/bin/") add_files ("src/goldfish.cpp") add_packages("s7") + + add_installfiles("goldfish/(scheme/*.scm)", {prefixdir = "goldfish"}) + add_installfiles("goldfish/(srfi/*.scm)", {prefixdir = "goldfish"}) end From c729e34e0648e93fabac1f8f72c47e9d1355e960 Mon Sep 17 00:00:00 2001 From: Darcy Shen Date: Fri, 2 Aug 2024 14:30:46 +0800 Subject: [PATCH 2/2] wip --- src/goldfish.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/goldfish.cpp b/src/goldfish.cpp index decbc2a..a8f2530 100644 --- a/src/goldfish.cpp +++ b/src/goldfish.cpp @@ -44,7 +44,7 @@ void display_help() { void display_version() { cout << "Goldfish Scheme " << goldfish_version << " by LiiiLabs" << endl; - cout << "based on S7 Scheme " << S7_VERSION << "(" << S7_DATE << ")" << endl; + cout << "based on S7 Scheme " << S7_VERSION << " (" << S7_DATE << ")" << endl; } void display_for_invalid_options() {