Merge branch 'master' of github.com:c3d2/slidenado

pull/2/head
Marius Melzer 7 years ago
commit 38b1435959

@ -0,0 +1,5 @@
ALL: $(patsubst lectures/%.yaml, lectures/%, $(wildcard lectures/*.yaml))
lectures/%: lectures/%.yaml
mkdir $@
./generate.rb $< $@

@ -0,0 +1,4 @@
Einleitung:
- ccc/ccc_bundesweit.tex
- ccc/ccc_lokal.tex
- motivation/stasi_vs_nsa.tex

@ -0,0 +1,19 @@
#!/usr/bin/env ruby
require 'yaml'
lecture_path = ARGV[0]
lecture = YAML::load_file lecture_path
sections = YAML::load_file File.join(File.dirname(lecture_path), lecture['sections'])
section_files = []
sections.each do |name, files|
p :name => name, :files => files
section_files.push *files
end
outdir_path = ARGV[1]
# TODO: convert to erb as well?
File.write File.join(outdir_path, "Makefile"), <<EOF
slides.pdf: slides.tex #{section_files.join " "}
\tpdflatex $<
EOF

@ -0,0 +1,6 @@
title: Digitale Selbstverteidigung
author: Marius
organization: Chaos Computer Club Dresden
date: 22.06.2016
sections: ../decks/digitale-selbstverteidigung.yaml
Loading…
Cancel
Save