2022-03-30 18:35:10 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-03-30 19:56:57 +02:00
|
|
|
set -x
|
2022-03-30 18:35:10 +02:00
|
|
|
set -e
|
|
|
|
|
2024-03-12 18:31:24 +01:00
|
|
|
TMP_HDR=test_single_header.hpp
|
|
|
|
TMP_SRC=test_single_header.cpp
|
|
|
|
TMP_BIN=test_single_header
|
2022-03-30 18:35:10 +02:00
|
|
|
|
2024-03-12 18:31:24 +01:00
|
|
|
python3 script/single_header_generator.py > ${TMP_HDR}
|
|
|
|
cat ${TMP_HDR} test/test_single_header_main.txt > ${TMP_SRC}
|
2022-03-30 18:35:10 +02:00
|
|
|
|
2024-03-12 18:31:24 +01:00
|
|
|
g++ -std=c++17 ${TMP_SRC} -o ${TMP_BIN} -Wall -Wextra
|
|
|
|
./${TMP_BIN}
|
2022-03-30 18:35:10 +02:00
|
|
|
|
2024-03-12 18:31:24 +01:00
|
|
|
rm ${TMP_HDR} ${TMP_SRC} ${TMP_BIN}
|