about.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include "sys_version.h" // 这是系统的版本头文件,在编译过程中自动生成
  2. #include <stdio.h>
  3. #include <unistd.h>
  4. void print_ascii_logo()
  5. {
  6. printf(" ____ ___ ____ \n");
  7. printf("| _ \\ _ __ __ _ __ _ ___ _ __ / _ \\ / ___| \n");
  8. printf("| | | || '__| / _` | / _` | / _ \\ | '_ \\ | | | |\\___ \\ \n");
  9. printf("| |_| || | | (_| || (_| || (_) || | | || |_| | ___) |\n");
  10. printf("|____/ |_| \\__,_| \\__, | \\___/ |_| |_| \\___/ |____/ \n");
  11. printf(" |___/ \n");
  12. }
  13. void print_copyright()
  14. {
  15. printf(" DragonOS - An opensource operating system.\n");
  16. printf(" Copyright: DragonOS Community. 2022-2024, All rights reserved.\n");
  17. printf(" Version: ");
  18. printf("\033[1;32m%s\033[0m", "V0.1.10\n");
  19. printf(" Git commit SHA1: %s\n", DRAGONOS_GIT_COMMIT_SHA1);
  20. printf(" Build time: %s %s\n", __DATE__, __TIME__);
  21. printf(" \nYou can visit the project via:\n");
  22. printf("\n");
  23. printf("\x1B[1;36m%s\x1B[0m", " Official Website: https://DragonOS.org\n");
  24. printf("\x1B[1;33m%s\x1B[0m", " GitHub: https://github.com/DragonOS-Community/DragonOS\n");
  25. printf("\n");
  26. printf(" Maintainer: longjin <[email protected]>\n");
  27. printf(" Get contact with the community: <[email protected]>\n");
  28. printf("\n");
  29. printf(" Join our development community:\n");
  30. printf("\x1B[1;33m%s\x1B[0m", " https://bbs.dragonos.org.cn\n");
  31. printf("\n");
  32. }
  33. int main()
  34. {
  35. print_ascii_logo();
  36. print_copyright();
  37. return 0;
  38. }