1 #include "sys_version.h" // 这是系统的版本头文件,在编译过程中自动生成
2 #include <math.h>
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <time.h>
6 #include <unistd.h>
print_ascii_logo()7 void print_ascii_logo()
8 {
9 printf(" ____ ___ ____ \n");
10 printf("| _ \\ _ __ __ _ __ _ ___ _ __ / _ \\ / ___| \n");
11 printf("| | | || '__| / _` | / _` | / _ \\ | '_ \\ | | | |\\___ \\ \n");
12 printf("| |_| || | | (_| || (_| || (_) || | | || |_| | ___) |\n");
13 printf("|____/ |_| \\__,_| \\__, | \\___/ |_| |_| \\___/ |____/ \n");
14 printf(" |___/ \n");
15 }
print_copyright()16 void print_copyright()
17 {
18 printf(" DragonOS - An opensource operating system.\n");
19 printf(" Copyright: fslongjin & DragonOS Community. 2022-2023, All rights reserved.\n");
20 printf(" Version: ");
21 put_string("V0.1.8\n", COLOR_GREEN, COLOR_BLACK);
22 printf(" Git commit SHA1: %s\n", DRAGONOS_GIT_COMMIT_SHA1);
23 printf(" Build time: %s %s\n", __DATE__, __TIME__);
24 printf(" \nYou can visit the project via:\n");
25 printf("\n");
26 put_string(" Official Website: https://DragonOS.org\n", COLOR_INDIGO, COLOR_BLACK);
27 put_string(" GitHub: https://github.com/DragonOS-Community/DragonOS\n", COLOR_ORANGE, COLOR_BLACK);
28 printf("\n");
29 printf(" Maintainer: longjin <longjin@DragonOS.org>\n");
30 printf(" Get contact with the community: <contact@DragonOS.org>\n");
31 printf("\n");
32 printf(" If you find any problems during use, please visit:\n");
33 put_string(" https://bbs.DragonOS.org\n", COLOR_ORANGE, COLOR_BLACK);
34 printf("\n");
35 printf(" Join our development community:\n");
36 put_string(" https://DragonOS.zulipchat.com\n", COLOR_ORANGE, COLOR_BLACK);
37 printf("\n");
38 }
39
main()40 int main()
41 {
42 print_ascii_logo();
43 print_copyright();
44
45 return 0;
46 }