Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
392B

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