aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.editorconfig2
-rw-r--r--.gitignore2
-rw-r--r--makefile3
-rw-r--r--time.txt1
-rwxr-xr-xtime2tex.py17
-rw-r--r--timerep.tex11
6 files changed, 35 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig
index 1bd7da9..cb52f84 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -5,7 +5,7 @@ indent_style = tab
end_of_line = lf
insert_final_newline = true
-[*.{md,yml}]
+[*.{md,yml,py}]
indent_style = space
indent_size = 2
diff --git a/.gitignore b/.gitignore
index f087c7f..efdebb8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,3 +31,5 @@
!img/*.pdf
img/*.puml.pdf
+# generated files
+time.tex
diff --git a/makefile b/makefile
index 0802e01..6c234ba 100644
--- a/makefile
+++ b/makefile
@@ -9,3 +9,6 @@ LATEXMKFLAGS += -interaction=nonstopmode
plantuml -tpdf $<
mv $*.pdf $@
+%.tex: %.txt
+ ./time2tex.py $< > $@
+
diff --git a/time.txt b/time.txt
index 22ed74f..c80fabf 100644
--- a/time.txt
+++ b/time.txt
@@ -7,6 +7,7 @@ loek: 2024-09-04 50m poc / dynamic library linking test example
loek: 2024-09-04 45m repository scaffolding / visual studio code latex configuration
loek: 2024-09-04 20m repository scaffolding / visual studio code cmake configuration
loek: 2024-09-05 15m repository scaffolding / additional latex contributing guidelines
+loek: 2024-09-05 1h40m project meeting
# vim:ft=cfg
diff --git a/time2tex.py b/time2tex.py
new file mode 100755
index 0000000..3244b8f
--- /dev/null
+++ b/time2tex.py
@@ -0,0 +1,17 @@
+#!/bin/python3
+import sys
+
+
+if __name__ == "__main__":
+ if len(sys.argv) != 2:
+ print("usage: time2tex <input>")
+ exit(1)
+
+ input_file = sys.argv[1]
+ content = ""
+ with open(input_file, "r") as file:
+ content = file.read()
+ parsed = parse(content)
+
+
+
diff --git a/timerep.tex b/timerep.tex
new file mode 100644
index 0000000..dfde932
--- /dev/null
+++ b/timerep.tex
@@ -0,0 +1,11 @@
+\documentclass{projdoc}
+\input{meta.tex}
+
+\title{Time Report}
+
+\begin{document}
+
+AHOIHJSAIDHOISAJDSAJDJAOIS
+
+\end{document}
+