Skip to content
Snippets Groups Projects
Unverified Commit a04ab4d9 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

updated makefile and ci

parent a378f17d
No related branches found
No related tags found
No related merge requests found
......@@ -42,12 +42,14 @@ before_script:
build_only:
script:
- cd slides
- make
- make deploy
- rsync -avz prog_seq_c_cours ur1bg_malas@ur1bg.ftp.infomaniak.com:web/malaspinas/
build_artifacts:
script:
- cd slides
- make
artifacts:
paths:
......
......@@ -16,7 +16,9 @@ HTML=$(MD:%.md=%.html)
PDF=$(MD:%.md=%.pdf)
MARKDOWN=$(MD:%.md=%.markdown)
all: $(MARKDOWN)
all: $(PDF) $(HTML)
markdown: $(MARKDOWN)
%.pdf: %.md metadata.yaml
pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $^
......@@ -26,7 +28,10 @@ all: $(MARKDOWN)
%.markdown: %.md metadata.yaml
echo "---" >> $@
sed '1 { /^---/ { :a N; /\n---/! ba; d} }' $< > only_header && grep -v -F -x -f only_header $< > header.yaml && ./yq_linux_amd64 merge metadata.yaml header.yaml > $@
sed '1 { /^---/ { :a N; /\n---/! ba; d} }' $< > only_header
grep -v -F -x -f only_header $< > header.yaml
./yq_linux_amd64 merge metadata.yaml header.yaml > $@
rm only_header header.yaml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment