Commit 103cd9ec authored by Carsten Eie Frigaard's avatar Carsten Eie Frigaard
Browse files

mk_course_plan.py

parent 468a0bd2
PYCOURSE=mk_course.py PYCOURSE = mk_course.py
PYFILETREE = mk_htlm_filetree.py
PYPLAN = mk_course_plan.py
build:
@ $(PYCOURSE) -v -o ../Html/
@ cd .. && $ Etc/$(PYFILETREE) -v -o Html/filetree.html
@ $(PYPLAN) -v -o ../Html/plan.html
test:
@ $(PYPLAN) -v -v -o index.html
@ colordiff -dw Refs/plan.ref index.html
sync: build sync: build
cd .. && scp -r Html/*.html si:ITMAL_E21/Html cd .. && scp -r Html/*.html si:ITMAL_E21/Html
ssh si "cd ITMAL_E21 && git pull" ssh si "cd ITMAL_E21 && git pull"
build:
$(PYCOURSE) -v -o ../Html/
edit: edit:
joe $(PYCOURSE) joe $(PYCOURSE)
......
COURSE COURSE
REFS DEFS
[HOMEHTML] https://itundervisning.ase.au.dk/ITMAL_E21/Html [HOMEHTML] https://itundervisning.ase.au.dk/ITMAL_E21/Html
[HOME] https://itundervisning.ase.au.dk/ITMAL_E21 [HOME] https://itundervisning.ase.au.dk/ITMAL_E21
[HOML] <span style='font-family: courier new, courier;'>[HOML]</span> [HOML] <span style='font-family: courier new, courier;'>[HOML]</span>
......
...@@ -273,7 +273,7 @@ if __name__ == '__main__': ...@@ -273,7 +273,7 @@ if __name__ == '__main__':
curr = [] curr = []
assert not s.get(t) assert not s.get(t)
s[t] = curr s[t] = curr
elif t=="REFS": elif t=="DEFS":
curr = [] curr = []
assert not s.get(t) assert not s.get(t)
s[t] = curr s[t] = curr
...@@ -289,9 +289,9 @@ if __name__ == '__main__': ...@@ -289,9 +289,9 @@ if __name__ == '__main__':
Dbg(verbose, f" {Col('YELLOW')}FOUND '{i}' {ColEnd()} {' => ' + h if verbose>2 else ''}", 2) Dbg(verbose, f" {Col('YELLOW')}FOUND '{i}' {ColEnd()} {' => ' + h if verbose>2 else ''}", 2)
refs = {} refs = {}
if isDict(htmlstructure).get("REFS"): if isDict(htmlstructure).get("DEFS"):
r = unescape(htmlstructure["REFS"]) r = unescape(htmlstructure["DEFS"])
del htmlstructure["REFS"] del htmlstructure["DEFS"]
refs = ParseRefs(r) refs = ParseRefs(r)
for i in htmlstructure: for i in htmlstructure:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment