Research portable Memory game | Исследовать портируемую игру Память
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

27 lignes
475B

  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 ' llm_test.cpp >> $TMP
  9. IN=$TMP
  10. OUT=$DIR/main.h
  11. echo '
  12. #include "memory_Context.h"
  13. #ifndef main_HEADER
  14. #define main_HEADER
  15. ' > $OUT
  16. sed -Ef cxx-headers.sed <$IN >>$OUT
  17. echo '
  18. #endif // main_HEADER
  19. ' >> $OUT