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 void print_ascii_logo() 8 { 9 printf(" ____ ___ ____ \n"); 10 printf("| _ \\ _ __ __ _ __ _ ___ _ __ / _ \\ / ___| \n"); 11 printf("| | | || '__| / _` | / _` | / _ \\ | '_ \\ | | | |\\___ \\ \n"); 12 printf("| |_| || | | (_| || (_| || (_) || | | || |_| | ___) |\n"); 13 printf("|____/ |_| \\__,_| \\__, | \\___/ |_| |_| \\___/ |____/ \n"); 14 printf(" |___/ \n"); 15 } 16 void print_copyright() 17 { 18 printf(" DragonOS - An opensource operating system.\n"); 19 printf(" Copyright: fslongjin & DragonOS Community. 2022, All rights reserved.\n"); 20 printf(" Version: "); 21 put_string("V0.1.6\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 } 36 37 int main() 38 { 39 print_ascii_logo(); 40 print_copyright(); 41 42 return 0; 43 }