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>
7
print_ascii_logo()8 void print_ascii_logo()
9 {
10 printf(" ____ ___ ____ \n");
11 printf("| _ \\ _ __ __ _ __ _ ___ _ __ / _ \\ / ___| \n");
12 printf("| | | || '__| / _` | / _` | / _ \\ | '_ \\ | | | |\\___ \\ \n");
13 printf("| |_| || | | (_| || (_| || (_) || | | || |_| | ___) |\n");
14 printf("|____/ |_| \\__,_| \\__, | \\___/ |_| |_| \\___/ |____/ \n");
15 printf(" |___/ \n");
16 }
print_copyright()17 void print_copyright()
18 {
19 printf(" DragonOS - An opensource operating system.\n");
20 printf(" Copyright: fslongjin & DragonOS Community. 2022, All rights reserved.\n");
21 printf(" Version: ");
22 put_string("V0.1.3\n", COLOR_GREEN, COLOR_BLACK);
23 printf(" Git commit SHA1: %s\n", DRAGONOS_GIT_COMMIT_SHA1);
24 printf(" Build time: %s %s\n", __DATE__, __TIME__);
25 printf(" \nYou can visit the project via:\n");
26 printf("\n");
27 put_string(" Official Website: https://DragonOS.org\n", COLOR_INDIGO, COLOR_BLACK);
28 put_string(" GitHub: https://github.com/fslongjin/DragonOS\n", COLOR_ORANGE, COLOR_BLACK);
29 printf("\n");
30 printf(" Maintainer: longjin <longjin@RinGoTek.cn>\n");
31 printf(" Get contact with the community: <contact@DragonOS.org>\n");
32 printf("\n");
33 printf(" If you find any problems during use, please visit:\n");
34 put_string(" https://bbs.DragonOS.org\n", COLOR_ORANGE, COLOR_BLACK);
35 printf("\n");
36 }
37
main()38 int main()
39 {
40 print_ascii_logo();
41
42 print_copyright();
43
44 return 0;
45 }