about.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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: DragonOS Community. 2022-2024, 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 <[email protected]>\n");
  30. printf(" Get contact with the community: <[email protected]>\n");
  31. printf("\n");
  32. printf(" Join our development community:\n");
  33. put_string(" https://bbs.dragonos.org.cn\n", COLOR_ORANGE, COLOR_BLACK);
  34. printf("\n");
  35. }
  36. int main()
  37. {
  38. print_ascii_logo();
  39. print_copyright();
  40. return 0;
  41. }