Research portable Memory game | Исследовать портируемую игру Память
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cxx-headers 517B

6 달 전
5 달 전
5 달 전
5 달 전
6 달 전
123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. DIR=$(cd "$(dirname "$0")" ; pwd -P)
  3. TMP=/tmp/cxx-headers.tmp
  4. grep '^memory_Context ' memory.cpp > $TMP
  5. grep '^std::string ' memory_test.cpp >> $TMP
  6. grep '^memory_Context ' cli.cpp >> $TMP
  7. grep '^std::string ' cli_test.cpp >> $TMP
  8. grep '^std::string ' ctx_test.cpp >> $TMP
  9. grep '^std::string ' llm_test.cpp >> $TMP
  10. IN=$TMP
  11. OUT=$DIR/main.h
  12. echo '
  13. #include "memory_Context.h"
  14. #ifndef main_HEADER
  15. #define main_HEADER
  16. ' > $OUT
  17. sed -Ef cxx-headers.sed <$IN >>$OUT
  18. echo '
  19. #endif // main_HEADER
  20. ' >> $OUT