summaryrefslogtreecommitdiff
path: root/tools/hscript-simulate/simulator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/hscript-simulate/simulator.cc')
-rw-r--r--tools/hscript-simulate/simulator.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/hscript-simulate/simulator.cc b/tools/hscript-simulate/simulator.cc
index 7162c4b..1731c62 100644
--- a/tools/hscript-simulate/simulator.cc
+++ b/tools/hscript-simulate/simulator.cc
@@ -2,7 +2,7 @@
* simulator.cc - Implementation of the HorizonScript simulation utility
* Project Horizon
*
- * Copyright (c) 2019 Adélie Linux and contributors. All rights reserved.
+ * Copyright (c) 2019-2020 Adélie Linux and contributors. All rights reserved.
* This code is licensed under the AGPL 3.0 license, as noted in the
* LICENSE-code file in the root directory of this repository.
*
@@ -86,12 +86,15 @@ int main(int argc, char *argv[]) {
#ifdef NON_LIBRE_FIRMWARE
colour_if_pretty(std::cout, "31");
std::cout << " (supports non-free firmware)";
-#endif
reset_if_pretty(std::cout);
+#endif
std::cout << std::endl;
if(isatty(1)) { /* LCOV_EXCL_START */
- std::cout << "Copyright (c) 2019 Adélie Linux and contributors. AGPL-3.0 license." << std::endl;
+ std::cout << "Copyright (c) 2019-2020 Adélie Linux and contributors.";
std::cout << std::endl;
+ std::cout << "This software is licensed to you under the terms of the "
+ << std::endl << "AGPL 3.0 license, unless otherwise noted.";
+ std::cout << std::endl << std::endl;
} /* LCOV_EXCL_STOP */
my_script = Horizon::Script::load(installfile, opts);
@@ -101,10 +104,10 @@ int main(int argc, char *argv[]) {
}
if(!my_script->execute()) {
- output_error("installfile", "Script failed. Stop.", "");
+ output_error("internal", "Script failed. Stop.", "");
result_code = EXIT_FAILURE;
} else {
- output_info("installfile", "Script completed.", "");
+ output_info("internal", "Script completed successfully.", "");
}
delete my_script;