From a3fbcf81a2564b69685d488687ca08ce2cc05e15 Mon Sep 17 00:00:00 2001 From: Andre Renaud Date: Thu, 17 Mar 2022 09:18:08 +1300 Subject: [PATCH] Rename some things & move them around. (#123) * Rename some things & move them around to clean up top-level directory Deleted TODO - it's no longer useful (we have github issues) --- .gitignore | 4 +++- Makefile | 8 ++++---- README.md | 2 +- TODO | 1 - pdfgen.dox => docs/pdfgen.dox | 0 pdfgen_logo.png => docs/pdfgen_logo.png | Bin tests.sh => tests/tests.sh | 0 7 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 TODO rename pdfgen.dox => docs/pdfgen.dox (100%) rename pdfgen_logo.png => docs/pdfgen_logo.png (100%) rename tests.sh => tests/tests.sh (100%) diff --git a/.gitignore b/.gitignore index ce86087..72e5a57 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ testprog output.pdf output.txt output.pdftk -docs/ tests/penguin.c coverage-html/ +docs/html +docs/latex +doxygen.log diff --git a/Makefile b/Makefile index c72a9e0..98b906e 100644 --- a/Makefile +++ b/Makefile @@ -40,8 +40,8 @@ tests/penguin.c: data/penguin.jpg check: $(TESTPROG) pdfgen.c pdfgen.h example-check cppcheck --std=c99 --enable=style,warning,performance,portability,unusedFunction --quiet pdfgen.c pdfgen.h tests/main.c $(CXX) -c pdfgen.c $(CFLAGS_OBJECT) /dev/null -Werror -Wall -Wextra - ./tests.sh - ./tests.sh acroread + ./tests/tests.sh + ./tests/tests.sh acroread $(CLANG_FORMAT) pdfgen.c | colordiff -u pdfgen.c - $(CLANG_FORMAT) pdfgen.h | colordiff -u pdfgen.h - $(CLANG_FORMAT) tests/main.c | colordiff -u tests/main.c - @@ -69,11 +69,11 @@ format: FORCE $(CLANG_FORMAT) -i pdfgen.c pdfgen.h tests/main.c tests/fuzz-*.c docs: FORCE - doxygen pdfgen.dox 2>&1 | tee doxygen.log + doxygen docs/pdfgen.dox 2>&1 | tee doxygen.log cat doxygen.log | test `wc -c` -le 0 FORCE: clean: rm -f *$(O_SUFFIX) tests/*$(O_SUFFIX) $(TESTPROG) *.gcda *.gcno *.gcov tests/*.gcda tests/*.gcno output.pdf output.txt tests/fuzz-header tests/fuzz-text tests/fuzz-image-data tests/fuzz-image-file output.pdftk fuzz-image-file.pdf fuzz-image-data.pdf fuzz-image.dat doxygen.log tests/penguin.c fuzz.pdf output.ps output.ppm output-barcodes.txt - rm -rf docs fuzz-artifacts infer-out coverage-html + rm -rf docs/html docs/latex fuzz-artifacts infer-out coverage-html diff --git a/README.md b/README.md index 65495d8..6a75082 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ PDFGen ====== -PDFGen Logo +PDFGen Logo Buy Me A Coffee diff --git a/TODO b/TODO deleted file mode 100644 index ca0d78a..0000000 --- a/TODO +++ /dev/null @@ -1 +0,0 @@ -* Add support for utf-8 (at the moment it's 7-bit ASCII only, especially around font width calculations). diff --git a/pdfgen.dox b/docs/pdfgen.dox similarity index 100% rename from pdfgen.dox rename to docs/pdfgen.dox diff --git a/pdfgen_logo.png b/docs/pdfgen_logo.png similarity index 100% rename from pdfgen_logo.png rename to docs/pdfgen_logo.png diff --git a/tests.sh b/tests/tests.sh similarity index 100% rename from tests.sh rename to tests/tests.sh