start: v5

This commit is contained in:
Михаил Капелько
2024-06-15 22:15:57 +03:00
parent 1615180d8d
commit 73b3aaba84
43 changed files with 3961 additions and 1 deletions

27
v5/cxx-headers Executable file
View File

@@ -0,0 +1,27 @@
#!/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
grep '^std::string ' cli_test.cpp >> $TMP
grep '^std::string ' ctx_test.cpp >> $TMP
grep '^std::string ' llm_test.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