This commit is contained in:
Михаил Капелько
2024-05-23 23:02:46 +03:00
parent 7f2dbfd65c
commit ad7efc5f19
13 changed files with 80 additions and 56 deletions

24
v4/cxx-headers Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
DIR=$(cd "$(dirname "$0")" ; pwd -P)
TMP=/tmp/cxx-headers.tmp
grep '^memory_Context ' memory.cpp > $TMP
grep '^std::string ' memory_test.cpp >> $TMP
#grep '^memory_Context ' cli.cpp >> $TMP
IN=$TMP
OUT=$DIR/main.h
echo '
#include "memory_Context.h"
#ifndef main_HEADER
#define main_HEADER
' > $OUT
sed -Ef cxx-headers.sed <$IN >>$OUT
echo '
#endif // main_HEADER
' >> $OUT